Disable the cache
Permalink Browser Info Environment
Hello,
I'm experiencing a problem due to the fact that the add-on is caching already loaded pages.
The pages I'm loading get data from session variables that might change anytime so with cached pages, the changes are not reflected.
Is there a way to disable the cache or even better to leave the cache on but refresh only certain blocks in the area?
Many thanks
Nour
I'm experiencing a problem due to the fact that the add-on is caching already loaded pages.
The pages I'm loading get data from session variables that might change anytime so with cached pages, the changes are not reflected.
Is there a way to disable the cache or even better to leave the cache on but refresh only certain blocks in the area?
Many thanks
Nour
Type: | Discussion |
---|---|
Status: | New |
hi,
thanks for the very fast answer.
That should partially do the trick but since the script is used with other pages that don't require to disable the cache, what I wanted to know was how to do it selectively.
If there is no way and if you are not going to bring any critical update to the add-on javascript any time soon; I think with what you already gave me, I could modify it myself but i'd like to make sure first
thanks for the very fast answer.
That should partially do the trick but since the script is used with other pages that don't require to disable the cache, what I wanted to know was how to do it selectively.
If there is no way and if you are not going to bring any critical update to the add-on javascript any time soon; I think with what you already gave me, I could modify it myself but i'd like to make sure first
nevermind, I solved the problem.
Thanks again for your help
Thanks again for your help
open up the view.js file for that block, and replace this:
this.getJSONCache = function(key){
return this._cache[key] || null;
}
with this:
this.getJSONCache = function(key){
return null;
}
so that it always returns null. let me know how that works for you. thx