- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2017 11:18 AM
HI Community,
I have a UI macro that does a GlideRecord query in a <g:evaluate var="jvar_gr" object="true"> tag and print out the record details in a while loop using <j:while>. What I find is that, if the records are updated, the query is not returning updated results. Is there some settings I can configure to make sure that it always get the latest record data? Does it have to do with clearing the cache?
Thanks,
Jenny
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2017 01:57 PM
try using a g2 evaluate....
Jelly compiles in 2 passes.. in pass one <the regular g evaluate> it loads the FORM data.. so put your headers columns etc in that pass.... this information is cached on the server...
in pass 2 <the g2 evaluate> it does NOT cache data... so any record fields should be grabbed in a g2 NOT a g.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2017 12:33 PM
You're saying that it one of the records gets updated, then you reload the page that the ui macro is on and it still has the old data?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2017 12:42 PM
Yes, that's correct. The updated record data only shows up after I flush the cache with cache.do and load the page again. But I don't know if it's necessary to do a system wide cache flush.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2017 12:33 PM
I believe you can try that (clearing cache) too since It's no harm.
But usually for these kind of scenarios, Try refreshing the entire web page, instead of using reload Form / reload frame if you are not doing so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2017 12:15 AM
Did you find a solution to this? I'm experiencing the same issue...
Thanks