Title: Programmatically Clear Cache
Last modified: May 23, 2023

---

# Programmatically Clear Cache

 *  Resolved [sporransoftware](https://wordpress.org/support/users/sporransoftware/)
 * (@sporransoftware)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/programmatically-clear-cache-2/)
 * I have a need to programmatically clear cache from the functions.php file. Other
   cache plugins have this functionality, for example:
   **if **( _function\_exists_(‘
   rocket_clean_domain’ ) ) {    _rocket\_clean\_domain_();}Does Breeze also have
   this functionality, and if so could you please reference the appropriate function
   or class to use, along with an example.I notice this question was asked two years
   ago but no fully resolved answer was given other than to hunt through the code(
   which I’ve done but sadly I’m really not that clever to unravel it).Many thanks
   in advance,Chris

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/programmatically-clear-cache-2/#post-16763680)
 * Breeze has the following hook to clear all the cache system.
   do_action( ‘breeze_clear_all_cache’);
 *  Thread Starter [sporransoftware](https://wordpress.org/support/users/sporransoftware/)
 * (@sporransoftware)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/programmatically-clear-cache-2/#post-16763955)
 * Brilliant, thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Programmatically Clear Cache’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [clear cache](https://wordpress.org/support/topic-tag/clear-cache/)
 * [function](https://wordpress.org/support/topic-tag/function/)
 * [programatically](https://wordpress.org/support/topic-tag/programatically/)

 * 2 replies
 * 2 participants
 * Last reply from: [sporransoftware](https://wordpress.org/support/users/sporransoftware/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/programmatically-clear-cache-2/#post-16763955)
 * Status: resolved