purge_cache_on_post_edit not working
-
Hi, I’ve installed + enabled + configured the plugin and enabled caching. However when editing pages cache is not purged automatically.
Manually clicking the “Purge cache for this post only” button from the admin menu works fine.
The WordPress site is hosted on wpengine.com but is sitting behind a reverse proxy hosted on Heroku which in turn has Cloudflare in front. So it’s not a typical pure WordPress + Cloudflare deployment. However I don’t see why that should have anything to do with automated purging not working considering I can successfully purge the cache manually.
Debug log output
After editing a page I get the following log output but the cache is not purged at Cloudflare:
[2022-01-27 08:31:35] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 324 and related contents - Fired action: clean_post_cache [2022-01-27 08:31:35] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 324 and related contents - Fired action: edit_post [2022-01-27 08:31:35] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 324 and related contents - Fired action: clean_post_cacheAfter clicking the “Purge cache for this post only” I get the following log output and the purge is successfully purged:
[2022-01-27 08:33:07] [cache_controller::purge_wpengine_cache] Purge WP Engine memcached cache [2022-01-27 08:33:07] [cache_controller::purge_wpengine_cache] Purge WP Engine varnish cache [2022-01-27 08:33:07] [cache_controller::start_cache_preloader_for_specific_urls] Adding 15 URLs to preloader queue [2022-01-27 08:33:08] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/ [2022-01-27 08:33:08] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache [2022-01-27 08:33:08] [cache_controller::ajax_purge_single_post_cache] Purge Cloudflare cache for only post id 324 and related contents [2022-01-27 08:33:11] [preloader::task] Unable to find a valid URL to preload. Exit. [2022-01-27 08:33:11] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/2/ [2022-01-27 08:33:16] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/3/ [2022-01-27 08:33:19] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/4/ [2022-01-27 08:33:22] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/5/ [2022-01-27 08:33:26] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/6/ [2022-01-27 08:33:30] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/7/ [2022-01-27 08:33:34] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/8/ [2022-01-27 08:33:37] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/9/ [2022-01-27 08:33:41] [preloader::task] Preloading URL https://www.mnd-staging.com/se-sv/page/10/How can I resolve this issue or troubleshoot further?
The topic ‘purge_cache_on_post_edit not working’ is closed to new replies.