WordPress.org

Ready to get started?Download WordPress

Forums

FV Gravatar Cache
Cache gravatars for posts (2 posts)

  1. Rickard Andersson
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/fv-gravatar-cache/

  2. Rickard Andersson
    Member
    Posted 2 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

About this Topic