Page cache priming not working
-
We are unable to get page cache priming to generate any pages in the cache. We are using Disk: Basic.
We have priming set to run every 10 minutes and generate 10 pages. We confirmed that we were having issues with wp-cron running on our staging server so we disabled automatic wp cron and have been manually firing it by hitting somedomain.com/wp-cron.php – which works: the cron queue is properly cleared when this runs (based on Advanced Cron Manager). However the page cache never gets anything in it.
We confirmed the sitemap we are using is good (our test only has 6 URLs in it), including validating it using the link in the W3TC plugin admin. The sitemap was generated by Yoast. We are not using the sitemap index but one of the individual sitemaps referenced in the index.
We installed wp-cli and called “wp w3-total-cache pgcache_prime”. This returned “Success: PageCache Priming triggered successfully.” – however no pages were cached.
If we visit the pages directly (via the links in the sitemap or regular site navigation) they ARE cached.
We also tried manually triggering caching of a specific page via the code suggested in this post: https://www.ads-software.com/support/topic/flush-cache-for-specific-page/ but it didn’t work either. This page wasn’t in the sitemap so not sure if that would have an effect or not.
We’re at a bit of a loss. It seems like either it doesn’t like the sitemap, or W3TC is failing to run cache priming after it is triggered.
Any suggestions?
- The topic ‘Page cache priming not working’ is closed to new replies.