Prime cache after cache expiry
-
Hello,
I am experiencing the following issue: after priming the page cache successfully, when the cache expires the cache primer does not work anymore. The only way of making it work again is clearing all caches with “wp w3-total-cache flush all”.
After priming the cache if I go to the “page_enhanced” folder in the server and run “find . -name “*.html” | wc -l” I find that there are as many files as the number of pages (which is correct). When the cache expires if I run the same command I find zero files, in fact they are all converted from .html to .html_old files. When the .html_old files are created if I run “wp w3-total-cache pgcache_prime” the command runs successfully (but in a very fast way, like the pages are already in the cache) but no .html files are created. If I visit the pages with a browser it is clear that the pages are not cached (the loading time is much slower) but after visiting a non cached page the corresponding .html file is correctly created. So in this case the cache primer does not create the .html files but visiting the same page in a browser creates the .html file.
How can I keep the cache primer working without stopping?
Thanks
- The topic ‘Prime cache after cache expiry’ is closed to new replies.