Automate Cache Purging | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer