• Resolved Mo

    (@gs1623)


    Is there any way I can schedule to automatically purge all caches at a time of my choosing?

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

    (@vmarko)

    Hello @gs1623

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

    There is no specific option in W3 Total cache to purge the cache in specific time, however, you can create a custom server cron and call w3tc_flush_all();
    You also can configure a cron job to call?wp w3-total-cache flush all?using WP-CLI.? For example:
    */15 * * * * cd ~/public_html/; wp w3-total-cache flush all &>/dev/null

    … would flush all cache every 15 minutes.? The?&>/dev/null?part discards all output (STDIN and STDERR).

    Thanks!

    Thread Starter Mo

    (@gs1623)

    @vmarko — Thanks. I will ask my developer to look into this. It would be very helpful and save me from having to do it manually. Since it’s an online store, I aim to keep it as dynamic as possible while reducing the server load. Thanks again for your timely response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automate Cache Purging’ is closed to new replies.