diff --git a/cloudflare-cache-purger.php b/cloudflare-cache-purger.php index bf97ed5..6592965 100644 --- a/cloudflare-cache-purger.php +++ b/cloudflare-cache-purger.php @@ -57,6 +57,7 @@ class Cloudflare_Cache_Purger { */ private function register_hooks() { // Hooks specified in requirements. + add_action( 'publish_to_publish', array( $this, 'purge_cache' ) ); add_action( 'pending_to_publish', array( $this, 'purge_cache' ) ); add_action( 'publish_to_trash', array( $this, 'purge_cache' ) ); add_action( 'future_to_publish', array( $this, 'purge_cache' ) ); @@ -271,6 +272,7 @@ class Cloudflare_Cache_Purger {
This plugin automatically purges the Cloudflare cache when any of these WordPress events occur: