Tagged: Prime Cache
-
AuthorPosts
-
February 24, 2023 at 12:25 pm #80753ROCK DesignGuest
Hello,
I have a question regarding the auto preload function. When all pages of the site are cached. When does the plugin create a new file/folder of a specific page / product?
Does it function like this?:
1. Preloads entire cache based on sitemap
2. When all pages are cached on new prime it creates an _old file and creates a new file of the page/product.For the info; we want all pages being cached all the time. So that no visitor will ever see an non-cached page. But ofcourse page cache should renew after specific amount of time.
With kind regards,
February 24, 2023 at 12:28 pm #80851Marko VasiljevicKeymasterHello,
Thank you for reaching out and I am happy to assist you with this.
I believe I already replied to you via the W3 Total Cache support channel and explained this.What the feature does is this:
– 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 in the next run
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)If your cron job is running every day instead of every minute, that means only one run can be done per day. If the cron job is set to every minute and the interval is set to a higher value, the plugin will check if the interval specified in the configuration has passed since the last time.
So that means if the cron job is not set to every minute, the priming could be delayed, especially if you set it to 1 hour and priming to 1,5 hour
The best is to have the cron job interval smaller than the priming interval and the priming interval should be equal to or a multiplied value of the cronjob intervalI hope this answers your question.
Thanks!
-
AuthorPosts
- The topic ‘How does the preload function work’ is closed to new replies.