From 5efd2799411e0f03621a47ff768c6ba1d3222347 Mon Sep 17 00:00:00 2001 From: Kit Westneat Date: Tue, 20 Oct 2015 16:09:50 -0400 Subject: [PATCH] added action bwp_minify_flushed_cache after cache is flushed If wordpress is behind a CDN or caching proxy, it is nice to know if the BWP cache is flushed, so that the upstream cache can be flushed as well. --- includes/class-bwp-minify.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-bwp-minify.php b/includes/class-bwp-minify.php index cf50239..05aa741 100644 --- a/includes/class-bwp-minify.php +++ b/includes/class-bwp-minify.php @@ -2365,6 +2365,7 @@ private function _flush_cache($cache_dir = '') } } closedir($dh); + do_action('bwp_minify_flushed_cache'); } }