• Resolved livingstonescreative

    (@livingstonescreative)


    The cache stopped updating yesterday – by that I mean that if you edit a post, the changes are only being shown to logged-in users. Standard traffic is shown the old version.

    I tried purging the cache for that page, I tried purging the entire cache, I even tried logging directly into Cloudflare to custom purge on the URL of the updated page, I also tried running purge everything within Cloudflare and nothing is updating the page for none logged-in users.

    I disabled page caching in the plugin and purged everything again but still nothing. I’ve tested this on a couple of pages and it’s the same result.

    If I inspect the Network tab in Chrome’s developer console I can see the following:

    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60

    Whereas if I view that same URL while logged in I get to see the updated page but those tags read as follows:

    x-wp-cf-super-cache: disabled
    x-wp-cf-super-cache-cache-control: no-store, no-cache, must-revalidate, max-age=0

    Firstly, does anyone know why the plugin might stop updating the cache? And secondly, does anyone know why I’m unable to disable the cache or successfully purge the cache?

    Thanks in advance for the help.

    p.s. you can add a dummy argument to the end of the URL to see the uncached version of the page; e.g. try adding ?wtf=is-going-on

    The page I need help with: [log in to see the link]

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

    (@isaumya)

    Hi,
    For the URL that you have shared, I can see that your main HTML page is not being served from the Cloudflare cache and the cache status is DYNAMIC: https://i.imgur.com/ZD8ZuJA.png

    Which means that these page is being served from the origin server and not Cloudflare cache.

    That being said, Can you double check that the email id and the API details that you have provided are for the cloudflare account where this domain is?

    Also please share a screenshot of the page rule section and the cache configuration section from your cloudflare dashboard.

    Thread Starter livingstonescreative

    (@livingstonescreative)

    Hi Saumya,

    Thanks for replying so promptly.

    Your comment about the Dynamic cache status led me to investigate what other caching might be going on at a server level rather than from within WordPress or Cloudflare. I discovered that Varnish had been enabled and after purging the Varnish cache from my Cloudways dashboard I’m now seeing the updated page and the x-wp-cf-super-cache: disabled flag in the console.

    I had previously enabled the Varnish Support settings within the super page cache plugin but the hostname was set to localhost rather than the server’s IP address. Would that have prevented the plugin from flushing the Varnish cache after those post edits? Or is there a deeper problem between super page cache and Varnish on Cloudways?

    Thread Starter livingstonescreative

    (@livingstonescreative)

    Unfortunately, disabling Varnish at the server level has not fixed the problem. I purged the Varnish cache, disabled it, purged it again for good measure and then re-enabled page caching within Super Page Cache. I then tested a few edits to posts and updates were still not being shown.

    Sadly I’m going to have to deactivate Super Page Cache as the client needs to push through several updates but if there’s an obvious cause to this problem that can be fixed I’d happily come back as Super Page Cache was managing to be super speedy and I would have stuck with it, had it not stopped working.

    Plugin Contributor iSaumya

    (@isaumya)

    I had previously enabled the Varnish Support settings within the super page cache plugin but the hostname was set to localhost rather than the server’s IP address. Would that have prevented the plugin from flushing the Varnish cache after those post edits?

    – Yes. For some wired reason in Cloudways localhost won’t work. You either need to provide your server IP or 127.0.0.1.

    Read this: https://www.ads-software.com/support/topic/varnish-port-cloudways/page/2/#post-15093109

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cache not updating and unable to disable’ is closed to new replies.