• Resolved stevenmaas

    (@stevenmaas)


    Thank you for a fantastic plugin. Every time I purge the cache I would like to prime the cache immediately right after. I am able to purge the cache with the below link:

    https://www.abc.com/?w3tc_note=flush_all

    1. Is there a link that primes the cache?
    2. Is there a way to purge then prime the cache in same link?
    • This topic was modified 1 year, 3 months ago by stevenmaas.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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!

    Thread Starter stevenmaas

    (@stevenmaas)

    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.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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!

    Thread Starter stevenmaas

    (@stevenmaas)

    Is there a way to run a php script to purge and preload the cache?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    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!

    Thread Starter stevenmaas

    (@stevenmaas)

    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.

    Thread Starter stevenmaas

    (@stevenmaas)

    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?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.