Hello @stevenmaas
Thank you for reaching out and I am happy to help
There is no button to preload cache. When the Cache preload is set and active, the preload starts once the page is visited.
What preload cached does is:
Check the last offset
– Check how many URLs are allowed to be processed per run
– Fetch all URLs from sitemap (even nested sitemaps work)
– Loop through a set of URLs to visit them
If the end of the list is reached, it will start from the beginning of the next run. If the cache is purged or content is updated, the preload starts again or preloads from the page that is purged.
You can also use wp-cli to for preloading. so, instead of calling wp-cron via crontab – you should call it directly via
wp w3-total-cache pgcache_primeand track the output of which pages/sitemap positions are primed by the script
Calling the wp-cli command is the same as the cronjob, but if you want you can specify where to start this run and how many pages should be visited (instead of using the configuration values)
I hope this helps!
Thanks!
Thank you for your prompt response.
I am aware that the preload checks the sitemap to prime the cache. I just thought it would be convenient to have a Preload Cache menu button and a Purge and Preload Cache combo button in the W3 Performance Admin Menu at top of the site. A Purge and Preload menu option would be really great when I am developing a website.
Hello @stevenmaas
Thank you for for your feedback.
I’ll share the information with the team. Thank you for taking the time to suggest this.
Thanks!
Is there a way to run a php script to purge and preload the cache?
Hello @stevenmaas
As mentioned before you can use wp_cli wp w3-total-cache pgcache_prime
I’ll get back to you once I have and answer from the team.
Thanks!
Thank you for your response and fantastic plugin. Nice job on the recent UI update.
Please consider adding Prime Cache to the Admin Area Performance Menu. Currently there is no quick way to do this and you must wait until the time setting on preload cache. If you update a post and have a footer on all pages with recent posts it won’t update until the time setting on preload cache.
Is there a way to run prime page cache in a php script? This way I can set up a cron job to run the script.
+1 i think there should be a button to preload the whole site!
Other cache plugins have this too.
I uunderstand right that only the visited PAGE is cached after a change, not the whole site?
If I am working on a website with 40 pages and edit the site CSS or js I would like to purge all posts and immediately preload the cache with the 40 pages.
Do you have a command that will purge then preload the cache?
This makes common sense no?
-
This reply was modified 1 year, 5 months ago by
steven.m.