Cache timeout not working when only homepage is accessed
-
I’m new to WPFC and the current version 0.8.5.6 is the only one I have tried.
My homepage features dynamic content that can change frequently. In WPFC I defined a 5-minute Cache timeout for the homepage, and signed out from the WP back end. Subsequently, at any time when directory /cache/all/ does not contain index.html, if I make several requests for the homepage only:
– on my 1st request, index.html is created in the /cache/all/ folder
– on my 2nd request, this index.html is served
– on my 3rd and subsequent requests, HTTP 304 is returned
All OK so far.If I mix homepage requests with requests for other pages on the site, a cron job runs shortly after the 5-minute timeout and successully deletes index.html.
All OK so far.But if I continue to request ONLY the home page, and no requests arrive at the website from other users, HTTP 304 continues to be returned after the 5 minute cache timeout expiry, and even 1 hour later. My Apache log shows that the requests with 304 responses do not trigger any cron job.
It looks like you return HTTP 304 without first checking if the cron job should run.
This is repeatable. I can supply any documentation you require.
- The topic ‘Cache timeout not working when only homepage is accessed’ is closed to new replies.