Will Stocks
Forum Replies Created
-
OK – So I have done some more checking, and I can confirm:
1) Only the homepage of my site is showing the “old” gravatar: https://willstocks.co.uk
2) My “new” gravatar shows on various other pages: https://willstocks.co.uk/author/will_stocks/ (although 2.png is broken for each post!) and https://willstocks.co.uk/review-soundpeats-a1-pro-wireless-on-ear-headphones/#disclaimer and https://willstocks.co.uk/review-aukey-12000mah-solar-rechargeable-power-bank/#comments
3) I have cleared Autoptimize and Hummingbird in order for these changes to be reflected.I am not sure why item 1 is happening???
I also don’t know why one of the images is corrupt – I will try changing my Gravatar again to see what happens.Hmm, I’m not sure what has happened, but 2.png is definitely corrupt. I’ve just downloaded it and it definitely isn’t a valid image!
2.jpg is perfectly fine though!! Maybe it’s something to do with “Optimization” that went wrong? 2.png is my “new” gravatar.
I’ve just updated to 1.3.4 (Did you like my /wp-content/uploads/optimum-gravatar-cache/ folder structure?? ๐ lol) as well.
I have just logged in, cleared my Hummingbird cache completely and downloaded my entire gravatar cache folder and have found the following:
1) My site is still showing the “old” gravatar from over a week ago (3.jpg)
2) My “new” gravatar is there – it was downloaded to my cache folder on the 15th (3.png)
3) I have also cleared Autoptimize (just in case) and my cache again – still showing the old Gravatar!Hmmm, strange – I havenโt manually edited any of the files. The only thing I can think is that itโs a new copy of my recent Gravatar change (5 days ago).
I have applied the default .htaccess supplied by the plugin, the only thing I can think is that maybe that date reference is old (page cached) and thereโs a new cached gravatar with a new date string? Weird though, because I would expect at least this would show something… https://willstocks.co.uk/wp-content/uploads/optimum-gravatar-cache/avatar/2.png
Hi @jomisica!
Ooh, interesting where have you found them out of curiosity as I canโt find any!
I was going to ask tomorrow – does OGC manage caching plugins if a Gravatar needs refreshing, as I think thatโs why mine havenโt updated yet (Iโll clear my main cache manually in a while to confirm).
I currently use WPMU Devโs Hummingbird (slowly growing – https://wordpress.org/plugins/hummingbird-performance/) and I donโt like their included Gravatar caching – yours is MUCH better IMO!
Thanks,
Will
OK!
So I potentially need to expand the “Search for outdated avatars every” time, as it’s not checking every 5 minutes, it’s running for 5 minutes?So the “Refresh cache every:” is the only number where it actually checks gravatar.com for new gravatars. The remainder of the numbers are “not relevant” to how frequently a new gravatar is checked for – the plugin will only check every 1+ days for new gravatars?
I think I understand now! ๐
Ooooh….
I think just to make sure, I’ll leave it to run it’s course properly ๐
I’ll check my site again in 24 hours, which would be the “1 day” window per:
Refresh gravatars cache every: 1 daysIf the cache only refreshes once every day as a minimum, what exactly does:
Search for outdated avatars every: 5 minutes
this do? Does it just check for outdated gravatars every 5 minutes and flag them as needing to be refreshed everyexpireTimedays?OK, I will wait for a day or two ๐
OK – so it doesn’t “force update” gravatars when I click the button. Does it still wait for the cache time limit to be hit before checking for new avatars? Only reason I ask, I hit that button half an hour ago (no new users/commenters) thinking that it would simply do an “on demand” refresh of the gravatars. Nothing has changed in that half an hour window ๐
Ahhh, OK that makes sense! I thought it’d be some form of date formatting I just couldn’t work out which type of encoding it was using haha!
Also, I have now enabled the query string option. I was expecting to see:
?d=[modification date]reflected as something like?d=151120181430but instead I’m seeing:?d=tcmsvx?
I now have set:
Refresh gravatars cache every: 1 days
Search for outdated avatars every: 5 minutesIf I click “Sync users and commenters now” – nothing seems to happen at all. The page refreshes, but nothing happens. I have also applied the .htaccess file in my cache folder and it has lowered the cache-control to 24 hours ๐
- This reply was modified 7 years, 7 months ago by Will Stocks.
If I click “sync users and commenters now” – should that essentially “force refresh” my cache on demand?
Thanks! ๐
I think I was using this template prior to this version when we were doing a little “testing”
I’ll let you know how it goesSo if I just use the “template” version you supply as part of the plugin and put that in my \gravatar\cache\ folder, that should sort my issue?
I’ll setup the cache-control header to 2 days (cache-control: 172800) and ExpiresDefault A172800
I will try enabling the query string as well, to cache bust!
So my top level .htaccess file has the following rules:
<FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$"> ExpiresDefault A2592000 </FilesMatch>and
<FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$"> Header set Cache-Control "max-age=2592000" </FilesMatch>Which is resulting in this header being set. I’ve just noticed there’s no .htaccess in my gravatar cache folder… If I set one up with a lower value specifically in the cache folder, it should overrule the top-level .htaccess right?
Thanks @jomisica – I will check the .htaccess file on the cache folder as I assume it’s something in there?
If not, I will try the query string option (although at the moment I strip query strings from WordPress via a simple function – hopefully it won’t strip these!) ๐
Forum: Plugins
In reply to: [Optimum Gravatar Cache] v1.3.0 has broken wp-adminMore than happy – shout whenever you need help! ๐