FV Gravatar Cache
Cache gravatars for posts (2 posts)

  1. Rickard Andersson
    Posted 3 years ago #


    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:


    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?



  2. Rickard Andersson
    Posted 3 years ago #

    Oh, I forgot. I also replaced all the occurrences of $comment->comment_author_email with $email in the GetAvatar() function

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • FV Gravatar Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic