Title: FV Gravatar Cache
Author: FolioVision
Published: <strong>2010年9月7日</strong>
Last modified: 2025年5月19日

---

プラグインを検索

![](https://ps.w.org/fv-gravatar-cache/assets/icon-256x256.png?rev=1619354)

# FV Gravatar Cache

 作者: [FolioVision](https://profiles.wordpress.org/foliovision/)

[ダウンロード](https://downloads.wordpress.org/plugin/fv-gravatar-cache.zip)

 * [詳細](https://ja.wordpress.org/plugins/fv-gravatar-cache/#description)
 * [レビュー](https://ja.wordpress.org/plugins/fv-gravatar-cache/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/fv-gravatar-cache/#installation)
 * [開発](https://ja.wordpress.org/plugins/fv-gravatar-cache/#developers)

 [サポート](https://wordpress.org/support/plugin/fv-gravatar-cache/)

## 説明

There’s one problem with Gravatars. They are very slow to load. Each page with comments
on them makes one call per comment to the Gravatar server. While a single call takes
only a 100ms, on a page with hundreds of comments, we are talking about major slowdowns.
Page loads can take 20 seconds and more.

This plugin solves this problem by:

 * caching gravatars with WordPress cron job..
 * caching gravatars on comment submission
 * maintaining a single copy of the default gravatar instead of downloading it again
   and again for all the email addresses with no gravatar associtated

[Installation guide](http://foliovision.com/seo-tools/wordpress/plugins/fv-gravatar-cache/installation)

[Support and more information](http://foliovision.com/seo-tools/wordpress/plugins/fv-gravatar-cache)

## スクリーンショット

 * [[
 * FV Gravatar Cache screen

## インストール

You can use the built in installer and upgrader, or you can install the plugin
 
manually.

After installing, make sure you visit the plugin settings to make sure the plugin
works correctly. You will see a check if the cache directory is writable and you
will have to set the gravatar size (plugin also uses autodetection mechanism, which
might come handy).

## FAQ

### Gravatars are not caching properly

Hit the “Empty Cache” button to clear the cache database and clear out the cache
directory by hand (you can see the path at the very top of the Settings screen).
Then hit the “Run Cron Now” button, it will refresh a couple of gravatars, so you
can check the cache directory again, to see if it’s filling up correctly. “Current
Cron offset:” will increment, so you can track the progess and see how the cron 
is running. You can also turn on “Debug mode” and check log.txt afterwards.

### Generated (Itenticon, Wavatar and MonsterID) gravatars are not working correctly!

These types of gravatars are not currently supported. Drop us a note and we might
add this feature in next release.

### I want to have bigger gravatars on author profile pages. Your plugin supports only one gravatar size. Is there any workaround?

You can turn edit your template to turn off the FV Gravatar Cache just when needed,
add this code right before that section in your WordPress template php file:

<?php global $FV_Gravatar_Cache; remove_filter( ‘get_avatar’, array( &$FV_Gravatar_Cache,‘
GetAvatar’ ) ); ?>

In case you need the FV Gravatar Cache running later in the template, just bring
it back with:

<?php global $FV_Gravatar_Cache; add_filter( ‘get_avatar’, array( &$FV_Gravatar_Cache,‘
GetAvatar’ ) ); ?>

### I don’t see the default gravatar on my options page!

If you selected empty gravatar in wp-admin -> Settings -> Discussion, then it’s 
ok. Otherwise try to resave the options and it should appear.

## 評価

![](https://secure.gravatar.com/avatar/9c13342f81964c055dddaee9df4c6698d1c079cce07fa503be315b9687509f09?
s=60&d=retro&r=g)

### 󠀁[Gravatar Cache boosted my site’s performance scores](https://wordpress.org/support/topic/gravatar-cache-boosted-my-sites-performance-scores/)󠁿

 [roam92](https://profiles.wordpress.org/roam92/) 2021年1月11日

Out of the box, the WordPress commenting system is not very performant. For each
comment – which could be dozens on a single page load – WordPress makes an uncached
call to an external site (gravatar.com) to load the commenter’s avatar image. This
happens even for the default (and most common) case that the commenter has no gravatar,
and it happens repeatedly even if the same person comments multiple times on a single
page. My site was getting flagged for this slow drain in profiling tools like GTmetrix
and Pingdom… But I did not want to give over my commenting content to third-party
companies like Disqus. About a year ago, I discovered FV Gravatar Cache, which vastly
reduces this back-and-forth and automatically maintains a fast cached copy of all
commenter’s gravatars. I installed the plugin and after waiting a little while for
it to cache the needed gravatars (which it works through methodically in the background
via cron, be patient), my site’s metrics and performance scores improved correspondingly.
Thank you for this helpful plugin! WordPress really should have something like this
built in.

![](https://secure.gravatar.com/avatar/0f59c9db9f28b81f379b197646384e61c1cc4210d887a801e3f0ba5eba17953d?
s=60&d=retro&r=g)

### 󠀁[Not working](https://wordpress.org/support/topic/not-working-3157/)󠁿

 [grafis](https://profiles.wordpress.org/snackmaster/) 2020年2月8日

Nothing cached according to GTMetrix. The plugin settings page “cache information”
shows 19 email addresses as the cached objects. The plug created six random user
profile PNG files here, did not create cached versions of default Gravatar icons:/
wp-content/uploads/fv-gravatar-cache Hmmm….

![](https://secure.gravatar.com/avatar/b738833d0b453bf2f789d79c7ed3e1e4888dffbf0ae69b4b541445b31854556c?
s=60&d=retro&r=g)

### 󠀁[Only caches a few out of each hundred](https://wordpress.org/support/topic/only-caches-a-few-out-of-each-hundred/)󠁿

 [christinaleans](https://profiles.wordpress.org/christinaleans/) 2019年3月22日

I installed this plugin on 3 blogs with three different hosts, and three different
themes. It has the exact same problem on all three sites: it only caches about 3-
10% of the Gravatars. Posted in their support forum but they responded (politely,
to their credit) that they would only look into it if I paid them…even though it’s
clearly an issue with their plugin.

![](https://secure.gravatar.com/avatar/f5bcb0b183b67586e10f7445d22cd543c1dfa05ea3992dcdac543429532177b6?
s=60&d=retro&r=g)

### 󠀁[Database Junk](https://wordpress.org/support/topic/database-junk/)󠁿

 [Gulshan Kumar](https://profiles.wordpress.org/thegulshankumar/) 2017年10月6日

I deactivated plugin but still contains elements in Database

![](https://secure.gravatar.com/avatar/30eab76f6818ab144a31dc025648c889e537423ca31043b451da160ef0e39371?
s=60&d=retro&r=g)

### 󠀁[Highly recommended](https://wordpress.org/support/topic/highly-recommended-217/)󠁿

 [](https://profiles.wordpress.org/theanalyzer/) 2017年8月15日

Been using this plugin for several years now. It just sits in the background doing
what it does, year after year. Trouble-free and reliable.

![](https://secure.gravatar.com/avatar/4ee8f4e0f7dbbc313552a2b936d1e7b814c449b71fec4462a45a2d910bc90a17?
s=60&d=retro&r=g)

### 󠀁[Good but need more](https://wordpress.org/support/topic/good-but-need-more/)󠁿

 [gokuldeepak](https://profiles.wordpress.org/gokuldeepak/) 2016年9月3日 1 reply

This plugin works well and increases speed but the problem is it only caches images
for the registered users. I want to cache for every user who comments on my page.(
They Don’t need to login to comment on my website instead giving their name and 
email id is enough)

 [ 11件のレビューをすべて表示 ](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/)

## 貢献者と開発者

FV Gravatar Cache はオープンソースソフトウェアです。以下の人々がこのプラグインに
貢献しています。

貢献者

 *   [ FolioVision ](https://profiles.wordpress.org/foliovision/)

[“FV Gravatar Cache” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/fv-gravatar-cache)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/fv-gravatar-cache/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/fv-gravatar-cache/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/fv-gravatar-cache/)を 
[RSS](https://plugins.trac.wordpress.org/log/fv-gravatar-cache/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.5

 * Tested up to WordPress 6.8
 * Fix PHP warnings before settings are saved
 * Fix settings page access to be admins only
 * Added uninstall procedure to remove files and database table
 * Security: Added nonces for settings page list of avatars
 * Security: Added permissions check for settings saving as an addition to the existing
   nonce
 * Security: Use SHA-256 hashing for cached file names which is stronger than MD5

#### 0.4.8

 * Fix for avatar caching for comments without email address (rare cases)

#### 0.4.7

 * Fix for PHP timeout when Gravatar server unreachable during comment posting
 * WordPress 5.4 compatibility checked

#### 0.4.5

 * Security fixes
 * WordPress 5.3 compatibility checked

#### 0.4.3

 * Fix for WP Rocket CDN rewrite

#### 0.4.2

 * Fixing PHP notices

#### 0.4.1

 * added retina alternative for default gravatar
 * fixed retina images srcset
 * retina images downloading enabled by default now

#### 0.4

 * changed images directory to wp-content/uploads/fv-gravatar-cache/
 * added support for retina images
 * added cache purge after update if cache directory is set to default
 * added protocol independent urls
 * added paging for gravatars into settings screen
 * fixed cron offset reset
 * fixed perfomance issues
 * fixed PHP warning
 * fixed security issue for debug log functionality
 * fixed images – adding .png extension as default

#### 0.3.8

 * fix for PHP warnings by Thomas van der Westen

#### 0.3.7

 * Added admin_notice warnings
 * Added a check if the cache directory is empty when the cached data is present
   in database – to prevent 404 errors for cache gravatars
 * Improving conditions, improving checking of values after submit

#### 0.3.6

 * Fix for PHP warnings
 * Fix for cache disappearing after plugin upgrade (applies to users who didn’t 
   changed the cache directory)

#### 0.3.4

 * Cron job limited to 2 seconds execution time

#### 0.3.3

 * Bugfix for empty gravatar in cache

#### 0.3.2

 * Bug fix for WordPress 3.1 admin bar
 * Bug fix for blank gravatar

#### 0.3.1

 * Better detection of missing/default gravatars

#### 0.3

 * First public release

#### 0.2

 * Added cron support

#### 0.1

 * Works only for logged in users

## メタ

 *  バージョン **0.5**
 *  最終更新日 **11か月前**
 *  有効インストール数 **700+**
 *  WordPress バージョン ** 2.7またはそれ以降 **
 *  検証済み最新バージョン: **6.8.5**
 *  言語
 * [English (US)](https://wordpress.org/plugins/fv-gravatar-cache/)
 * タグ
 * [avatar](https://ja.wordpress.org/plugins/tags/avatar/)[cache](https://ja.wordpress.org/plugins/tags/cache/)
   [gravatar](https://ja.wordpress.org/plugins/tags/gravatar/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/fv-gravatar-cache/advanced/)

## 評価

 5つ星中3.9つ星

 *  [  7 5-星レビュー     ](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/?filter=4)
 *  [  1 3-星レビュー     ](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/?filter=3)
 *  [  2 2-星レビュー     ](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/?filter=2)
 *  [  1 1-星レビュー     ](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/fv-gravatar-cache/reviews/)

## 貢献者

 *   [ FolioVision ](https://profiles.wordpress.org/foliovision/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/fv-gravatar-cache/)