• Resolved robaxxx

    (@robaxxx)


    Hi there

    This is a great plugin, I’ve been using it for a year or more on most sites in my multisite.

    But now I have a problem that seems to relate to this.

    One site in my multisite does not have its domain on Cloudflare because the client uses their own DNS service. So I never enabled the plugin on it.

    Sometime in the last 2-3 months I have found that content updates on that site won’t show up unless I wait a day or use a cache busting URL to force the page to show changes. Nothing else will make the page show updates, no clearing of browser caches will do it.

    A second problem that I believe is related to this issue, is that the WP toolbar vanishes on certain pages when I view them whilst logged in.

    It feels to me like the pages load from a cache somewhere outside of the server and outside of the browser.. e.g. like on CloudFlare cache

    I have today discovered that those pages show cf-cache-status: HIT, whilst the pages that work properly show cf-cache-status: MISS.

    So the question is…

    How are certain pages getting cf-cache-status: HIT/MISS in them without this plugin enabled and a CF domain?

    I don’t know if it is this plugin causing this, but that’s the only thing I have on here that relates to Cloudflare.

    Regards
    Rob

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter robaxxx

    (@robaxxx)

    Adding to this…

    The above is not accurate now, ten minutes later.

    Now, all pages show the cf-cache-status: HIT and I appear to be logged out on all of them, not just some of them.

    I also compared to a site that has the plugin enabled and that has extra headers showing it is active e.g.

    x-wp-cf-super-cache
    cache
    x-wp-cf-super-cache-active
    1

    So I’m not sure what’s going on with the site that does not have it active. I can’t see what else would create the cf-cache-status: HIT headers in the pages.

    I’ll keep investigating, but thanks for any suggestions.
    Rob

    Thread Starter robaxxx

    (@robaxxx)

    I guess the basic question is whether or not this plugin would/could cause pages to show cf-cache-status: HIT for a site in a multisite that does not have a domain on Cloudflare and does not have the plugin enabled.

    Could that even happen?

    Plugin Contributor iSaumya

    (@isaumya)

    Hi,
    Well, if you have a multisite then it depends on how the multisite is setup. The plugin will only cache pages for the domain on which it was setup. Also, this plugin is not supposed to be network installed, instead you need to install it separately on each site.

    Thread Starter robaxxx

    (@robaxxx)

    Hi, yes it’s always been installed/activated separately per site, not at network level, and it works properly on the sites that have domains on Cloudflare.

    But for some reason, the site that doesn’t have a Cloudflare domain and does not have the plugin active shows that caching header.

    Is there anything else you are aware of that would cause a site to get that cache hit?

    Regards
    Rob

    Plugin Contributor iSaumya

    (@isaumya)

    Can you share one of such site URL so that I can check?

    Thread Starter robaxxx

    (@robaxxx)

    Yes, this is the site where the domain is not on Cloudflare: neurizer.com.au

    If the homepage html document is not showing cf-cache-status: HIT then just click through some other pages.

    And this is on the same multisite and does have the domain on Cloudflare: tog.co.nz

    That one shows the header hit and also shows the plugin as being enabled.

    So strange?

    Thanks for checking,
    ROb

    Plugin Contributor iSaumya

    (@isaumya)

    Can you show me the page rule and cache rule section for neurizer.com.au from the Cloudflare dashboard?

    Thread Starter robaxxx

    (@robaxxx)

    Hi, the whole point of this query is that the neurizer domain is not in Cloudflare. All of the posts above state that.

    That’s the strange thing… how does a domain that is not in Cloudflare get a Cloudflare cache hit?

    Regards
    Rob

    Thread Starter robaxxx

    (@robaxxx)

    Oh, I should state that I don’t have control over the DNS of that domain. I have asked where the DNS is but haven’t received a reply. They did not want to put it in Cloudflare when I built the site. I think it is in Office 365.

    Plugin Contributor iSaumya

    (@isaumya)

    Hi, I understand that neurizer.com.au is not in Cloudflare but I’m sure that it’s using some custom hostname in the CNAME record of the domain. If you could share the DNS for this domain would be super helpful.

    Cause when I do https://www.whatsmydns.net/#A/neurizer.com.au then the IP that I am getting is a Cloudflare IP which means these domain requests are routed through Cloudflare (maybe via custom hostname) – hard to say without looking at the DNS.

    Thread Starter robaxxx

    (@robaxxx)

    Thank you for having a look at this, I appreciate your expertise on this.

    I’ll get them to send me the DNS and then come back and update this here. I’ve not had any responses this week, but if they want to site to work properly then I need to get the info.

    I’ll update again soon as I have it.
    Regards
    Rob

    Plugin Contributor iSaumya

    (@isaumya)

    No problem. I’m really looking forward to the info.

    Thread Starter robaxxx

    (@robaxxx)

    Hey, thanks for looking at this.

    I received screenshots of the DNS which is at Godaddy and sure enough, there were two sets of A records in it, one set pointing to that Cloudflare IP you mentioned and the other to my server.

    So, the site was randomly hitting Cloudflare (and even being cached!) on different pages at different times.

    I’ve told them to delete those records and leave only the correct ones.

    The client has had 3 rebrands over the last decade and I suspect the Cloudflare records would have been imported from a previous domain and previous registrar.

    Strange is that it worked when routed to the Cloudflare IP and was being cached. Maybe everyone can have free random caching just by pointing an A record there heh.

    Thanks again for the comments here that helped.
    Regards
    ROb

    Plugin Contributor iSaumya

    (@isaumya)

    Hi Rob,
    I’m sure that IP where it’s pointing to that Cloudflare account has some kind of rule set to cache pages which is why pages were being cached. Good to see your problems being resolved. ??

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Multisite – Getting cf-cache-status: HIT on a non-CF site’ is closed to new replies.