• I just started using the plugin. I disabled a plugin then click the purge cache button, but the purge never worked. I kept refreshing my page but the plugin still shows in the page source. I wait 5 minutes or more and still it was there. I clicked purge cache again and again kept refreshing the page and still the plugin was still showing in the page source. Then I logged into Cloudflare and clicked purge everything and almost instantly the plugin was gone from the source.

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

    (@isaumya)

    Hi,
    I would suggest you to enable the log mode inside the plugin settings and then within the plugin settings under the other tab set the log verbosity to HIGH.

    Then try to purge the cache, wait for a few minutes and check if it worked. If not download the log and check as in the log you will be able to see exactly what response has been received from the Cloudflare API when you tried to purge.

    Thread Starter m22878

    (@m22878)

    EDIT: Okay, after further testing it is clearing the CF cache, but it’s not clearing my varnish cache. How do I properly configure the varnish cache? I am on Cloudways and have that option selected.

    This is what the log says. What is this about single URL varnish? I want it to clear all Varnish cache. Is it? You can also see it says retrying. All I know is that many times I will click the purge button and it says successful, but then I keep refreshing my page and I don’t see the updated page. Even after minutes. I then do the purge everything from inside my CF account and refresh and instantly get the updated page I was looking for. This has happened many times.

    [2021-12-27 06:45:48] [cache_controller::ajax_purge_whole_cache] Purge whole Cloudflare cache
    [2021-12-27 06:45:48] [varnish::purge_single_url_cache] Send purging request to https://localhost/.*
    [2021-12-27 06:45:48] [varnish::purge_single_url_cache] Response code 405 - Retry using https://
    [2021-12-27 06:45:48] [varnish::purge_single_url_cache] Send purging request to https://localhost/.*
    [2021-12-27 06:45:48] [varnish::purge_single_url_cache] Cache purged for URL 
    [2021-12-27 06:45:48] [cache_controller::purge_opcache] Purge OPcache cache
    [2021-12-27 06:45:48] [cache_controller::purge_object_cache] Purge object cache
    [2021-12-27 06:45:48] [cloudflare::start_preloader_for_all_urls] Getting last published posts for post types: Array
    (
        [0] => post
        [1] => page
        [2] => e-landing-page
        [4] => portfolio_page
        [5] => product
        [6] => jet-engine
        [7] => laptop-listings
    )
    
    [2021-12-27 06:45:48] [cache_controller::start_cache_preloader_for_specific_urls] Adding 21 URLs to preloader queue
    [2021-12-27 06:45:49] [cache_controller::purge_all] Purged whole Cloudflare cache
    [2021-12-27 06:45:49] [preloader::task] Preloading URL https://www.domain.com
    • This reply was modified 2 years, 11 months ago by m22878.
    Plugin Contributor iSaumya

    (@isaumya)

    How do I properly configure the varnish cache? I am on Cloudways and have that option selected.

    – If you are using cloudways then in the varnish host either put 127.0.0.1 or your server IP.

    Cloudways doesn’t recognize the string localhost.

    Try that and check.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Purge doesn’t seem to work’ is closed to new replies.