If I setup a cache and allow if to be refreshed and multiple users come in and perform a refresh at the same time, will those requests stack up on each other and force a refresh of the cache for each request or will only 1 request force the cache to refresh and all others will get served the cache from the first requestor?
The cache manager only refreshes the cache when it has expired - so that normally will occur only once. However if a second request for access to the data is made before the refresh is finished, another refresh request will be made. Anytime a user requests a forced refresh, it will be refreshed no matter when it was lasted refreshed.
On Confluence restart, cached entries are no longer available (since it is a memory cache).
By default retry, I assume you mean the refresh interval which, but default is 1 day. You can only change that on each macro and set it to a high value to prevent it from being refreshed very often.
Sorry for the delay in re-asking this one Bob. On Question 2, I was more interested in the new retry functionality than the refresh interval. I was able to find out how to make retry disabled by default. What would happen if it was set to true for retry and 5 users attempted to hit the page simultaneously and the cache was the in the process of being refreshed and took quite awhile to refresh. Would the 2, 3, 4, 5th users continue to retry while the first cache was being generated and then eventually get their own cache?
Atlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG