Jelly/Glide script cache problem?

JennyHu
Tera Guru
Tera Guru

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

1 ACCEPTED SOLUTION

randrews
Tera Guru

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.


View solution in original post

9 REPLIES 9

Brad Tilton
ServiceNow Employee
ServiceNow Employee

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?


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.


Srinivas Balusu
Kilo Guru

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.


Christian62
Kilo Contributor

Did you find a solution to this? I'm experiencing the same issue...



Thanks