Will Stocks
Forum Replies Created
-
Just 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
Yes, makes sense – WP Super Cache is the “biggest” and most used cache at the moment – it’s very good, I used to use it but like some of the options that Hummingbird provides (and their team publicize development plans) 🙂
Those are pretty good ideas. It might also be worth looking at supporting “Autoptimize” – Frank is great and has TONNES of hooks/documentation relating to Autoptimize. It deals with minification/optimization of HTML and is fairly widely used (700,000+ installs) as well – things get cached by Autoptimize so you may need to look at clearing Autoptimize’s cache at the same time? Maybe a later stage 😉
Cloudflare acts as a “proxy” for my entire site (it handles all my DNS etc.) and is pretty powerful. I have it set to edge cache my site for 2 hours before refreshing from my host.
I’m hoping the guys at Hummingbird are able to help me work out why when my HB cache is cleared, it doesn’t clear Cloudflare’s too as the integration should do that!
If I could find a way to have OGC’s cache push up to AWS S3 (which is where my media library currently goes – via https://wordpress.org/plugins/amazon-s3-and-cloudfront/) that’d be great and would avoid any “Cloudflare” conflicts! 🙂
I know my CF integration is working, because I can update browser cache expiration via HB and it reflects in CF
OK… 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”?Very nice!! That will save users a little bit of hassle 🙂
Also, just an FYI – Apparently Hummingbird doesn’t clear Cloudflare’s full cache which is annoying, so there’s potential for the gravatar to get “stuck”.
@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, 7 months ago by Will Stocks.
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.Ah, 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?
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!Ahhhh, OK! That makes sense! It might be worth adding a note somewhere to say “To enable the ‘clear cache’ button, you need to disable caching”
That makes sense – GDPR 😉
Hi @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?
OK:
1) OGC cache cleared
2) All users and commenters synced – all gravatars now showing correctly on the site
3) Changed my Gravatar again
4) Waiting 1 day and will check the site again.I have also logged a support req: https://wordpress.org/support/topic/clear-cache-also-clears-cloudflare-cache/ with WPMUDev around Hummingbird, as I thought it was supposed to clear Cloudflare’s cache as well!
Out of curiosity – why is the “Clear Cache” button always disabled?
<button class=”button” name=”clearCache” disabled=”disabled”>Clear Cache<span class=”clear-count”>(53 images / 202.01 KB)</span></button>That’s my “new” image. Either it has downloaded incorrectly, or the “optimization” may have broken the image?
The image exists on my FTP, but it’s definitely broken. I have downloaded it to my machine and I cannot open it.
I’ll clear the gravatar cache and will start from scratch again, to see what happens with regards to my “newer” avatarHi @jomisica
I can confirm Expires is now removed (example: https://willstocks.co.uk/wp-content/uploads/optimum-gravatar-cache/avatar/3.png)
Aha!!! Cloudflare! I use Cloudflare, which was also caching my home page. I have now cleared Cloudflare’s cache and I’m seeing the “new” gravatar (although broken!!) on my home page.
Apologies – I thought Hummingbird was supposed to clear that as part of its “integration”
- This reply was modified 7 years, 7 months ago by Will Stocks.