• ResolvedPlugin Contributor Will Stocks

    (@willstockstech)


    Hey @jomisica

    I hope you are well?

    I changed my Gravatar image late last week to a new image. I was expecting to see this reflected on my site within a day or two (I have the “check for outdated gravatars” set to every 1 day and check every 5 minutes), however it did not update!

    I thought maybe it was something to do with my site’s caching plugin, so I cleared my site cache – no change.

    I tried “sync users and commenters now” in the plugin – nothing happened at all.

    I then had to clear the gravatar cache (the button is/was disabled for some reason, so I enabled the button by editing the html and removing disabled=”disabled”) which meant I could click the button and the cache then emptied.

    My new gravatar then started to show and started caching (although I had to navigate through all pages that have a gravatar for it to cache each correct image).

    Any idea why this would/did happen?

Viewing 15 replies - 16 through 30 (of 50 total)
  • Plugin Author José Miguel

    (@jomisica)

    Maybe it’s not the best phrases to explain each option. But their functions are as follows.

    “Refresh caches cache every: 1 days” is the time that the copy of a given gravatar should be cached locally.

    “Search for outdated avatars every: 5 minutes” is the length of time that jobs in the background should run. Looking for graves that should be updated.

    “Number of users to check simultaneously: 100” is the number of gravatars that must be updated in the previous process, each time.

    Plugin Contributor Will Stocks

    (@willstockstech)

    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! ??

    Plugin Author José Miguel

    (@jomisica)

    The background task runs every 5 minutes(Check for outdated Gravatars every), looking for gravatars that have more than one day (Refresh Gravatar cache every) in the local cache.

    Select 100 users(Number of users to check simultaneously) who have more than one day in cache, to verify if your gravatar in gravatar.com has been updated and if yes update the cache locally.

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstocks,

    I’ve been testing your site and noticed that it has corrupted gravatars in some sizes. I advise you to clear the cache. You should not manipulate the files manually.

    I’m already working to support cache plugins like the super cache. When a gravatar is updated it will clear the cache where a particular user has commented or is the author of the post. At the moment it is already working with WP Super Cache, but I intend to support others in the future.

    What cache plugin do you use?

    Plugin Contributor Will Stocks

    (@willstockstech)

    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://www.ads-software.com/plugins/hummingbird-performance/) and I don’t like their included Gravatar caching – yours is MUCH better IMO!

    Thanks,

    Will

    Plugin Author José Miguel

    (@jomisica)

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstocks,

    In the version I am developing at the moment already supports wiping the posts containing a particular gravatar that has been updated. Only works with WP Super Cache at the moment, in the future will support more plugins. This is only necessary in the case of using query strings. If using the .htaccess proposed by the plugin works with any cache.

    Plugin Contributor Will Stocks

    (@willstockstech)

    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

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstocks,

    Yes, it’s weird!

    https://willstocks.co.uk/wp-content/uploads/optimum-gravatar-cache/avatar/2.jpg

    However, it is sent, the header ‘expires’:

    expires Wed, 21 Nov 2018 23:12:21 GMT

    It looks like the following code is not being applied:
    <IfModule mod_expires.c>
    ExpiresActive Off
    </ifModule>

    See the headers that my server sends to this gravatar:
    https://static.ncdc.pt/cache/avatar/l.png

    Plugin Contributor Will Stocks

    (@willstockstech)

    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!

    Plugin Contributor Will Stocks

    (@willstockstech)

    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.

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstockstech,

    Are you using any CDN?

    To confirm see if you can get the exipres applied:
    <IfModule mod_expires.c>
    ExpiresActive Off
    </ ifModule>

    Plugin Contributor Will Stocks

    (@willstockstech)

    Hi @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”

    Plugin Author José Miguel

    (@jomisica)

    Hello @willstockstech,

    Yes it is true, expires is no longer sent.

    But I continue to receive the corrupt image:
    https://willstocks.co.uk/wp-content/uploads/optimum-gravatar-cache/avatar/2.png

    So something is serving this image that no longer exists.

    Plugin Contributor Will Stocks

    (@willstockstech)

    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” avatar

Viewing 15 replies - 16 through 30 (of 50 total)
  • The topic ‘Gravatar cache doesn’t seem to be updating based on the frequency set’ is closed to new replies.