Page Cache is stale with no garbage collection
-
I am having an issue with my page cache going stale. I have page cache setup with the following options.
Page Cache Tab
Page caching via disk: enhanced
Garbage collection interval: 3600 secondsBrowser Cache Tab
Set expires header Expires header lifetime: 604800 seconds
Set cache control header Cache Control policy: Cache with Max-ageWhen I run my pages through REDbot.org it states that my pages are stale. Below is the information it gives me.
The resource last changed 10 days 5 hr ago.
This response allows all caches to store it.
This response is already stale.
This response cannot be served by a cache, because it is stale.
Cache-Control: public is rarely necessary.Shouldn’t the pages be “flushed” from the page cache after a certain amount of time? I have a separate script running that regenerates the pages in the cache when they are “flushed”. This should restart the “resource last changed” time/date.
My question is how do I keep my page cache fresh or am I totally misinformed on how this all works?
Thanks in advance for any help that is offered!
- The topic ‘Page Cache is stale with no garbage collection’ is closed to new replies.