Title: Automate Cache Purging
Last modified: August 2, 2023

---

# Automate Cache Purging

 *  Resolved [Mo](https://wordpress.org/support/users/gs1623/)
 * (@gs1623)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/automate-cache-purging/)
 * 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](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/automate-cache-purging/#post-16942330)
 * Hello [@gs1623](https://wordpress.org/support/users/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](https://wordpress.org/support/users/gs1623/)
 * (@gs1623)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/automate-cache-purging/#post-16942357)
 * [@vmarko](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mo](https://wordpress.org/support/users/gs1623/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/automate-cache-purging/#post-16942357)
 * Status: resolved