keycdn / cache-enabler

A lightweight caching plugin for WordPress that makes your website faster by generating static HTML files.
https://wordpress.org/plugins/cache-enabler/
123 stars 46 forks source link

1.7 - Hook cache_enabler_complete_cache_cleared does not fire after cache_enabler_clear_complete_cache #219

Closed janvitos closed 3 years ago

janvitos commented 3 years ago

Hi,

I'm using the cache_enabler_clear_complete_cache hook and also cache_enabler_complete_cache_cleared once the cache is cleared to fire a local script that primes the cache and also clears the Cloudflare cache.

I just updated to 1.7 and noticed that the cache_enabler_complete_cache_cleared hook doesn't fire anymore, so my script isn't being called either.

I also tried using the cache_enabler_clear_site_cache hook along with cache_enabler_site_cache_cleared, but that didn't work either and nothing is being called.

It used to work perfectly before upgrading, so I'm guessing the update had an effect on this.

Thanks.