• Resolved chun0914

    (@chun0914)


    Hello,

    Is it possible to generate all page cache at once instead of manually visiting each page to generate cache?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @chun0914

    Thank you for reaching out and I am happy to assist you with this.

    You can use Cache Preload option for this in Performance>Page Cache>Cache Preload.

    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 in the next run.

    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!

Viewing 1 replies (of 1 total)

The topic ‘generate all page cache at once’ is closed to new replies.