• Resolved bobsled

    (@bobsled)


    There was a problem with single page purges on Cloudflare yesterday.

    https://www.cloudflarestatus.com/incidents/912fyqqfdpph

    However, even though the issue is marked as resolved, I still can’t purge single pages from the plugin or Cloudflare.

    I know this is not a plugin issue, but do you have any ideas on how to solve the issue? I haven’t tried a full purge as yet as I don’t want to rebuild the entire cache unless it’s absolutely necessary.

Viewing 15 replies - 16 through 30 (of 38 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    Can you recheck your ghlobal API in case you are using correct API keys and stuffs? Try resetting the plugin on a smaller site to see if that works. Also try purging a single page from cloudflare dashboard and see if that works.

    Thread Starter bobsled

    (@bobsled)

    Okay, I tried this:

    Checked and re-entered Global API. Okay.
    Force Purged everything.
    Purged cache on Cloudflare dashboard.
    Disabled cache on the plugin.
    Reset all.
    Set up the plugin again.

    Result? The same. I still can’t purge a page with the plugin or on the Cloudflare dashboard. I tried toggling Development mode on and off, but no joy.

    @bobsled
    I’ve created a ticket on cloudflare here (https://support.cloudflare.com/hc/en-us/requests/2196125) since single page purge is still not working on my side… not sure if it’s related to CF or the plugin though (everything was working fine until 2 days ago for me)

    Thread Starter bobsled

    (@bobsled)

    Thanks for the update @bluisier

    Thread Starter bobsled

    (@bobsled)

    I’m not sure this is normal @isaumya

    In the log, when I purge a page, the first line is always “queue file not exist”.

    [2021-06-30 11:05:16] [cache_controller::purge_cache_queue_write] queue file not exist
    [2021-06-30 11:05:16] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 2760 and related contents – Fired action: clean_post_cache
    [2021-06-30 11:05:16] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 2760 and related contents – Fired action: edit_post
    [2021-06-30 11:05:16] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 2760 and related contents – Fired action: clean_post_cache
    [2021-06-30 11:05:16] [cache_controller::purge_cache_on_post_edit] Purge Cloudflare cache for only post id 2760 and related contents – Fired action: clean_post_cache
    [2021-06-30 11:05:21] [cache_controller::purge_cache_queue_job] I’m the purge cache cronjob
    [2021-06-30 11:05:21] [cache_controller::start_cache_preloader_for_specific_urls] Adding 12 URLs to preloader queue
    [2021-06-30 11:05:22] [preloader::task] Preloading URL https://atlaslit.com/paris-on-a-slab-the-woman-in-white-by-wilkie-collins/
    [2021-06-30 11:05:22] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache

    Plugin Contributor iSaumya

    (@isaumya)

    Hi @bobsled,
    yes the log is fine. Enable the log verbosity to High and then purge a single page and see what response you get from Cloudflare API

    Thread Starter bobsled

    (@bobsled)

    This is what I get:

    [2021-06-30 11:45:28] [html_cache::add_current_url_to_cache] The URL https://atlaslit.com/wp-cron.php?doing_wp_cron=1625053527.2651329040527343750000 cannot be cached due to caching rules.
    [2021-06-30 11:45:30] [html_cache::add_current_url_to_cache] The URL https://atlaslit.com/wp-json/wp/v2/ cannot be cached due to caching rules.
    [2021-06-30 11:45:30] [html_cache::add_current_url_to_cache] The URL https://atlaslit.com/wp-json/yoast/v1/statistics cannot be cached due to caching rules.
    [2021-06-30 11:45:35] [html_cache::add_current_url_to_cache] The URL https://atlaslit.com/wp-cron.php?doing_wp_cron=1625053534.4819989204406738281250 cannot be cached due to caching rules.
    [2021-06-30 11:45:37] [cloudflare::purge_cache_urls] Request URL: https://api.cloudflare.com/client/v4/zones/ae8da3f33585011cf515d81b54c30e3a/purge_cache
    [2021-06-30 11:45:37] [cloudflare::purge_cache_urls] Request Body: {"files":["https:\/\/atlaslit.com\/a-food-and-booze-tour-with-harry-bosch-and-michael-connelly\/","https:\/\/atlaslit.com\/category\/books\/","https:\/\/atlaslit.com\/category\/books\/page\/2\/","https:\/\/atlaslit.com\/category\/books\/page\/3\/","https:\/\/atlaslit.com\/category\/north-america\/united-states\/","https:\/\/atlaslit.com\/tag\/food\/","https:\/\/atlaslit.com\/tag\/los-angeles\/","https:\/\/atlaslit.com\/author\/derek-haines\/","https:\/\/atlaslit.com\/author\/derek-haines\/feed\/","https:\/\/atlaslit.com\/articles\/","https:\/\/atlaslit.com\/articles\/?feed=rss2","https:\/\/atlaslit.com\/","https:\/\/atlaslit.com\/articles\/"]}
    [2021-06-30 11:45:37] [cloudflare::purge_cache_urls] Response: {
      "result": {
        "id": "ae8da3f33585011cf515d81b54c30e3a"
      },
      "success": true,
      "errors": [],
      "messages": []
    }
    
    [2021-06-30 11:45:37] [cache_controller::start_cache_preloader_for_specific_urls] Adding these URLs to preloader queue: Array
    (
        [0] => https://atlaslit.com/a-food-and-booze-tour-with-harry-bosch-and-michael-connelly/
        [1] => https://atlaslit.com/category/books/
        [2] => https://atlaslit.com/category/books/page/2/
        [3] => https://atlaslit.com/category/books/page/3/
        [4] => https://atlaslit.com/category/north-america/united-states/
        [5] => https://atlaslit.com/tag/food/
        [6] => https://atlaslit.com/tag/los-angeles/
        [7] => https://atlaslit.com/author/derek-haines/
        [8] => https://atlaslit.com/author/derek-haines/feed/
        [9] => https://atlaslit.com/articles/
        [10] => https://atlaslit.com/articles/?feed=rss2
        [11] => https://atlaslit.com/
    )
    
    [2021-06-30 11:45:38] [cache_controller::purge_urls] Purged specific URLs from Cloudflare cache
    [2021-06-30 11:45:38] [cache_controller::ajax_purge_single_post_cache] Purge Cloudflare cache for only post id 3186 and related contents
    [2021-06-30 11:45:38] [preloader::task] Preloading URL https://atlaslit.com/a-food-and-booze-tour-with-harry-bosch-and-michael-connelly/
    [2021-06-30 11:45:39] [html_cache::add_current_url_to_cache] The URL https://atlaslit.com/wp-cron.php?doing_wp_cron=1625053538.5317571163177490234375 cannot be cached due to caching rules.
    [2021-06-30 11:45:40] [preloader::task] Preloading URL https://atlaslit.com/category/books/
    [2021-06-30 11:45:42] [preloader::task] Preloading URL https://atlaslit.com/category/books/page/2/
    [2021-06-30 11:45:44] [preloader::task] Preloading URL https://atlaslit.com/category/books/page/3/
    [2021-06-30 11:45:47] [preloader::task] Preloading URL https://atlaslit.com/category/north-america/united-states/
    [2021-06-30 11:45:49] [preloader::task] Preloading URL https://atlaslit.com/tag/food/
    [2021-06-30 11:45:51] [preloader::task] Preloading URL https://atlaslit.com/tag/los-angeles/
    [2021-06-30 11:45:53] [preloader::task] Preloading URL https://atlaslit.com/author/derek-haines/
    [2021-06-30 11:45:55] [preloader::task] Preloading URL https://atlaslit.com/author/derek-haines/feed/
    [2021-06-30 11:45:56] [html_cache::add_current_url_to_cache] The URL https://atlaslit.com/author/derek-haines/feed/ cannot be cached due to caching rules.
    Thread Starter bobsled

    (@bobsled)

    I posted the results of the high verbosity log @isaumya

    But it went to moderation. Hopefully, you can access it.

    Plugin Contributor iSaumya

    (@isaumya)

    Sorry, I don’t see any high verbosity log.

    Thread Starter bobsled

    (@bobsled)

    It’s out of moderation, so you should be able to see it now.

    Plugin Contributor iSaumya

    (@isaumya)

    As I can see in the above response the Cloudflare API is returning success. Don’t know what’s going on. You should contact Cloudflare asking why the cache is not getting cleared despite the API is returning success true.

    Thread Starter bobsled

    (@bobsled)

    Yes, I started a tread on Cloudflare support.

    https://community.cloudflare.com/t/single-file-cache-purging-not-working/281900/7

    I have just sent a new support request as well.

    Thanks for all your help @isaumya but it certainly looks like it’s a Cloudflare problem and not with the plugin.

    Plugin Contributor iSaumya

    (@isaumya)

    Hey @bobsled,
    Let me ask you this:
    Do you have Argo enabled on the site?

    Thread Starter bobsled

    (@bobsled)

    No, I don’t use Argo, @isaumya

    Plugin Contributor iSaumya

    (@isaumya)

    OK. I can confirm that the issue you are explaining above exists and I can also experience it on my client sites. Not sure when CF team will fix the issue.

Viewing 15 replies - 16 through 30 (of 38 total)
  • The topic ‘Can’t purge single pages’ is closed to new replies.