• Resolved p15h

    (@prestonwordsworth)


    It has come to our attention that with the following settings, changes made to a page aren’t automatically reflected on our live site after updating the page.

    Automatically purge the Cloudflare's cache when something changes on the website

    Manually purging the cache, on the other hand, successfully purges it. Looking at the log, it appears the difference between the two actions boils down to whether OPcache and object cache also get purged:

    [2024-05-27 16:58:23] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 2349 and related contents - Fired action: clean_post_cache
    [2024-05-27 16:58:23] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 2349 and related contents - Fired action: clean_post_cache
    [2024-05-27 16:58:30] [cache_controller::purge_opcache] Purge OPcache cache
    [2024-05-27 16:58:30] [cache_controller::purge_object_cache] Purge object cache
    [2024-05-27 16:58:30] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
    [2024-05-27 16:58:30] [cache_controller::ajax_purge_single_post_cache] Purge Cloudflare cache for only post id 2349 and related contents

    The first two entries are from automatic purge, the latter four from the manual purge.

    So would it be possible for automatic purge to cover OPcache and object cache as well?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Can you check under the advanced tab you have enabled the purge opcache and object cache option inside the plugin settings page?

    Thread Starter p15h

    (@prestonwordsworth)

    Yes, both are indeed enabled – which is why the third and fourth log lines were there when a manual purge was triggered.

    It’s only the auto purge that doesn’t seem to be controlled by these settings.

    Plugin Contributor iSaumya

    (@isaumya)

    That is weird. Cause those settings should also work for auto purge as well.

    Can you set the Log verbosity to HIGH under the others tab and then click Update on any post to see what shows up in the logs?

    Thread Starter p15h

    (@prestonwordsworth)

    That helps! After spending more time with the log, I’ve tracked down the root cause: auto purge relies on wp cron, whilst manual purge executes immediately. The result is the OPcache/object cache entries show up at once for the latter, but appear in the case of auto purge according to the cron cycle (5min in our case). Still, they get run eventually.

    Thanks very much for getting me through this.

    Plugin Contributor iSaumya

    (@isaumya)

    Happy to hear that you have found the root cause and taken action on that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.