Linux 软件免费装

FV Gravatar Cache

开发者 FolioVision
更新时间 2025年5月19日 22:13
PHP版本: 2.7 及以上
WordPress版本: 6.7

标签

cache avatar gravatar

下载

0.4.8 0.4.1 0.4.5 0.4.7 0.4 0.3.6

详情介绍:

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: Installation guide Support and more information

安装:

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).

常见问题:

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.

更新日志:

0.4.8 0.4.7 0.4.5 0.4.3 0.4.2 0.4.1 0.4 0.3.8 0.3.7 0.3.6 0.3.4 0.3.3 0.3.2 0.3.1 0.3 0.2 0.1