FV Gravatar Cache Plugin for WordPress
A couple months back, I installed the FV Gravatar Cache plugin as a way to attempt to cache gravatar.com images.
Gravatar.com is awesome but loading the images, on any post that has a lot of comments, can significantly contribute to loading time slowdown.
So, caching them sounded great (and most caching tools were ignoring them).
I was a little dubious about the plugin because I had not noted any significant improvement in posts that most needed it.
However, today, spotting lines and lines of duplicate entry into the database…. sealed it’s “removed” fate.
While writing lines to the error log (which is the end result) sounds harmless it does contribute to site load on an already heavy site. There should be no need for error writes when everything is running smoothly.
Example: (email addresses removed to protect privacy)
[18-Feb-2013 00:48:03] WordPress database error Duplicate entry '[email protected]' for key 'email' for query INSERT INTO `wp_gravatars` (email,time,url) VALUES ( 're@gmail.comCDATAfunctiontryvarsaijrcldocument.getElementByIdcfemailal.classNameifasrpars', '', '' ) made by do_action_ref_array, call_user_func_array, fv_gravatar_cache_cron_run, FV_Gravatar_Cache->Cron [18-Feb-2013 08:48:07] WordPress database error Duplicate entry '[email protected]' for key 'email' for query INSERT INTO `wp_gravatars` (email,time,url) VALUES ( 'az@gmail.comCDATAfunctiontryvarsaijrcldocument.getElementByIdcfemailal.classNameifasrparseIn', '', '' ) made by do_action_ref_array, call_user_func_array, fv_gravatar_cache_cron_run, FV_Gravatar_Cache->Cron [18-Feb-2013 10:18:05] WordPress database error Duplicate entry '[email protected]' for key 'email' for query INSERT INTO `wp_gravatars` (email,time,url) VALUES ( 'cl@freemail.msCDATAfunctiontryvarsaijrcldocument.getElementByIdcfemailal.classNameifasrparseIn', '', '' ) made by do_action_ref_array, call_user_func_array, fv_gravatar_cache_cron_run, FV_Gravatar_Cache->Cron
What’s distinctive about this error log is that it is only duplicate entries for three specific email address. However, there is no rhyme or reason for it to be those three. Seems totally random.
Yes, I could walk over to the database and manually yank those entries, but I’m just not interested in keeping it around to make more duplicates. I’m sure I’m not going to miss it because I have just about everything possible otherwise cached and never particularly noticed it’s benefits.
Rating: 1 or 5:
Got a plugin you’d love to see me review?
Let me know!