Title: Clear cache programatically
Last modified: June 20, 2021

---

# Clear cache programatically

 *  [Krzysztof Planeta](https://wordpress.org/support/users/chrisplaneta/)
 * (@chrisplaneta)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/clear-cache-programatically-2/)
 * Hi
 * I am a plugin developer and I need to know how to purge cache in Breeze programatically
   in php.
 * 2 other people asked about it in older support questions but they didn’t get 
   an answer.
 * Can you please tell me how to do that? I am sure many other plugin developers
   need this info too.
 * There are 2 2 topics you didn’t answert to:
 * [https://wordpress.org/support/topic/clear-cache-with-php-command/](https://wordpress.org/support/topic/clear-cache-with-php-command/)
   
   [https://wordpress.org/support/topic/programmatically-purge-cache/](https://wordpress.org/support/topic/programmatically-purge-cache/)
 * Have a nice day
    Krzysztof

Viewing 1 replies (of 1 total)

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/clear-cache-programatically-2/#post-14586710)
 * Breeze clear cache with the following patterns
    For Varnish: Breeze_Admin->breeze_clear_varnish()
   Example: //clear varnish cache $admin = new Breeze_Admin(); $admin->breeze_clear_varnish();
 * For local static files:
    Breeze_Configuration::breeze_clean_cache() Example //
   clear static cache $size_cache = Breeze_Configuration::breeze_clean_cache();
 * Other methods to clear “all cache” or “varnish cache”
    // for all cache do_action(‘
   breeze_clear_all_cache’ )
 * // for varnish
    do_action( ‘breeze_clear_varnish’ );
 * for static cache, multiple functions need to be called
 * //delete minify Breeze_MinificationCache::clear_minification();
    //clear normal
   cache Breeze_PurgeCache::breeze_cache_flush();`

Viewing 1 replies (of 1 total)

The topic ‘Clear cache programatically’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/clear-cache-programatically-2/#post-14586710)
 * Status: not resolved