[Plugin: FV Gravatar Cache] Cache gravatars for posts
-
Hello
I’ve been playing around with this plugin and it seems like it doesn’t cache gravatars for post authors.
In the GetAvatar() function it seems to be using the $comment->comment_author_email value as email when trying to fetch the avatar from gravatar. This fails for post author avatars and I made this workaround:
https://gist.github.com/2275838
If I comment out the return statement after
if( $not_in_cache ) {
the gravatar will be downloaded and the resulting<img>
tag will refer to the local copy. However the result doesn’t seem to be saved correctly in the cache.From the admin page I see:
Cache information: 1 items in cache
But refreshing the page with the return statement comment removed the plugin won’t find the avatar in cache.
Could you maybe take a look at this or by some other means get support for author gravatars?
Thanks!
- The topic ‘[Plugin: FV Gravatar Cache] Cache gravatars for posts’ is closed to new replies.