Clear cache also clears Cloudflare cache
-
Hi guys,
As part of being integrated with Cloudflare, should hitting “Clear Hummingbird Cache” also clear my cache in Cloudflare?
-
As long as you have the integration set up in Hummingbird – yes, Cloudflare cache will be cleared
Best regards,
AntonHi @vanyukov
Thanks for the quick response!
So, I have the integration setup, but I’m not seeing this behaviour. I’m having to go into Cloudflare after-the-fact to “manually” clear the cache.
Is there a particular piece of config I may have overlooked?
Can you please try going to Hummingbird – Caching – Browser Caching, at the bottom click Clear Cache and verify that the cache is cleared in Cloudflare?
I will give it a go shortly for you.
I was clearing the cache via the admin bar button.
Basically, what I was seeing (around 10 – 15 mins ago):
1) I had cleared my site cache
2) Navigated into my site in an incognito window
3) Cleared cache and refreshed – same page
4) Repeat step 3 a few times
5) Opened Cloudflare control panel
6) Clear Cloudflare cache
7) Open the window I opened in step 2
8) Repeat step 3 – changes show!Perhaps you are referring to page caching (similar to Page Rules in Cloudflare)? Hummingbird will only clear out browser cache stuff – css/js/images. It won’t clear out cached pages.
Best regards,
AntonAh, OK – so by hitting “Clear Cache” on the “Page Caching” settings page (and wp-admin bar – admin.php?page=wphb-caching&view=main) Hummingbird will not clear the Cloudflare “page cache” as well as browser cache?
It will clear out all HB caches – page cache, gravitas cache, asset optimization cache, etc + Cloudflare browser cache.
OK thanks @vanyukov – I will continue to jump into Cloudflare and hit “Purge Everything” in the event I clear my HB cache, as Cloudflare definitely seems to be holding onto something each time.
At the moment, I’m still using Autoptimize instead of HB Asset Optimization, as I had some issues a couple of versions ago where assets were not optimizing properly. I’ll retry again in the future.
RE: Gravatar caching – I’m finding that https://wordpress.org/plugins/optimum-gravatar-cache/ is simply suiting my wants/needs a bit more than HB’s option was. I’ll give this another whirl at some point in the future too, but I like having some degree of “customizability”/control in this area.@vanyukov – out of curiosity, why not clear the “full cloudflare cache”? (aka “purge everything”)? https://api.cloudflare.com/#zone-purge-all-files
-
This reply was modified 7 years, 5 months ago by
Will Stocks.
That’s exactly what HB is using. But that was never tested with Page Rules, as it was not the intended integration. Are you sure that this endpoint should be clearing out cache from Page Rules and not just the static assets?
Best regards,
AntonOK… that’s interesting. I do have “simple” Page Rules setup such as:
https://mydomain.url*
Cache Level: Cache everything
Edge Cache TTL: 2 hoursHowever if I’m clearing my cache “manually” via the Cloudflare control panel, I’m not doing anything other than logging in and hitting that “Purge Everything” button, which in theory is doing the same
DELETE https://api.cloudflare.com/client/v4/zones/:identifier/purge_cachewhich I assume HB is doing… so not sure why my Cloudflare cache isn’t clearing when I hit “Clear Cache” in my wp-admin. Any way I can try to “debug”?I know my CF integration is working, because I can update browser cache expiration via HB and it reflects in CF
I’d start from the audit log, it’s under Account Home – Audit Log. Check that the call is logged there. You should be looking for a ‘Purge everything’ entry that has an IP address of your site. Verify that the zone that is being cleared is the correct one.
Best regards,
AntonJust tried again. I’m checking the audit log and nothing is showing in there. HB gave me:
Your local and Cloudflare caches have been successfully cleared. Your assets will regenerate the next time someone visits your website.But there’s nothing in the Cloudflare Audit Log.
I’m seeing:
Cloudflare is connected for this domain. Adjust your expiry settings and save your settings to update your Cloudflare cache settings.In the HB settings
Aha! So it took about 5 minutes, but I’m now seeing a “Purge Everything” in my Audit Log with a source of my web server’s IP and against the correct zone – so there’s a little delay there for some reason.
I’ll keep an eye on it over the next couple of days and will get back to you! -
This reply was modified 7 years, 5 months ago by
The topic ‘Clear cache also clears Cloudflare cache’ is closed to new replies.