Support Forum

How to clear gravatar cache without plugin?

JI jim
jim
Member

We have an odd issue related to Avatars that I need help troubleshooting:

1. We do not allow avatar uploads via SimplePress.

2. We do not use the SP Gravatar Cache plugin (Just discovered it!).

3. We use an Avatars plugin for WordPress Multisite that does not interact with Gravatar in any way.

4. We do not and have never used Jetpack, or its Photon CDN.

5. Our SP Avatar Priorities are: WP Avatars -> SP Default Avatars -> Gravatars

Now…

I uploaded new default avatar files using the Avatars plugin (Not SP), however, I still notice avatars in our forum being loaded from what appears to be a Gravatar URL.

Old Default Avatar Image URL Example:

https://i0.wp.com/tripawds.com/wp-content/plugins/avatars/avatars-files/images/default-avatar-96.png?ssl=1

The latter part of that URL points to the correct location of the new image files:

/wp-content/plugins/avatars/avatars-files/images/default-avatar-96.png

Which load properly here:

https://tripawds.com/wp-content/plugins/avatars/avatars-files/images/default-avatar-96.png

So, it appears to me that some sort of Gravatar caching is going on.

My question is:

Could SimplePress be causing this?

Is there any way to purge this Gravatar cache within SimplePress if we do not use the Gravatar Cache plugin?

Isthere a way to remove Gravatars from the Priorities list?

Does the Gravatar Cache plugin have a function to purge the cache? If so, would you recommend trying that?

Guess that’s more than one question.

Thanks in advance for any feedback!

6 Answers

New Answer

SP Simple Press
Simple Press
Admin

If you use the WP Avatars, its possible that the Gravatar is cached in WP itself.  An example case – I’ve seen instances where we’ve set up a third party avatar plugin that randomly assigned avatars to users and then those avatars stuck around even after the 3rd party plugin was removed – meaning that WP probably has it cached somewhere.  

Thanks.

JI jim
jim
Member

Simple Press said
…WP probably has it cached somewhere. 

Right, any idea how or where to clear that cache?

Thanks for the quick reply! I forgot to mention that we do have WP configured to use our 3rd party Avatars, and have re-saved that setting – which shows the new correct avatar – but the old defaults still load from i0.wp.com in the forums…

Screen-Shot-2018-12-19-at-5.42.13-PM.pngScreen-Shot-2018-12-19-at-5.10.25-PM.png
SP Simple Press
Simple Press
Admin

I honestly have no idea.  I can’t even tell you how or where it stores those files if it does cache them. And google isn’t much help – as you probably already know… 

JI jim
jim
Member

Does the SP Gravatar Cache plugin have a function to purge the cache?

YS Yellow Swordfish
Yellow Swordfish
Member

Morning Jim

I can only really help with questions regarding the SP plugin ‘Gravatar Cache’ as I am not that familiar with The WP Avatar options.

So – no there is no actual reset. However, uninstalling the Gravatar Cache plugin will remove the folder gravatars are cached to. But – if you do not use the plugin then there should be no such folder. You can check this by looking at your ‘storage locations’ under ‘wp-content‘. The name of the folder would be ‘forum-gravatar-cache‘.

Just for the record, I always considered the SP Gravatar Cache plugin to be a bit of an unrecognised gem. For sites that DO allow gravatars the performance advantage the plugin gives is quite stunning. I think we always undersold it really.

JI jim
jim
Member

Yellow Swordfish said
…no there is no actual reset. However, uninstalling the Gravatar Cache plugin will remove the folder gravatars are cached to. But – if you do not use the plugin then there should be no such folder.

Thank you for the clarification. I had no idea where exactly the plugin cached the images/.

Further reading of Jetpack and Gravatar documentation suggests the only way to clear i0.wp.com cached images is by direct request, which I have done. Just still stumped as to why they are loading from there in the first place.

Thanks for all the input!