Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #80753
    ROCK Design
    Guest

    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,

    #80851
    Marko Vasiljevic
    Keymaster

    Hello,

    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 interval

    I hope this answers your question.

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How does the preload function work’ is closed to new replies.