cachelife clariffication
Unanswered
White Wagtail posted this in #help-forum
White WagtailOP
I have been reading the documentation on cacheLife. Can someon confirm if i have understood it right please. Example:
stale: 5 mins
revalidate: 10 minutes
expire: 20 minutes
if i hit it any time up to 5 minutes then it will just return the cached value and that sit
if i hit it 5-10 minutes then it will return the cache value but also trigger a revalidate for the next time it gets hit so the cahce is refreshed and the timer starts again from 0
if i hit it after 20 minutes then it will do a full pull from the db and cache it and the timer set to 0
if the above is correct, then what happens between 10 and 20 minute hit?
stale: 5 mins
revalidate: 10 minutes
expire: 20 minutes
if i hit it any time up to 5 minutes then it will just return the cached value and that sit
if i hit it 5-10 minutes then it will return the cache value but also trigger a revalidate for the next time it gets hit so the cahce is refreshed and the timer starts again from 0
if i hit it after 20 minutes then it will do a full pull from the db and cache it and the timer set to 0
if the above is correct, then what happens between 10 and 20 minute hit?