The easiest way to limit excerpt length in WordPress is by adding ‘Read More’ tag in your post, however you can limit excerpt length in WordPress by controlling number of words or number of characters…
Cache Gravatar Images in WordPress to Optimize your site speed. Why you should cache gravatar images in WordPress. How caching gravatar images in WordPress optimize your WordPress site.
Most of the WordPress sites use gravatar images in the author’s profile and comments. These gravatar images definitely look cool and make your site more genuine, but they come at a price.
By default, the Gravatar Images retrieve from gravatar.com to your website. Hence gravatar images increase the number of HTTP requests on your WordPress site. And thus making your website slow. You can leverage caching of Gravatar Images to overcome this problem.
Wait, did you just say that you are already using a WordPress cache plugin on your WordPress site.
Okay, but WordPress cache plugins do not take care of caching of gravatar images.
So, what should you do?
How to Cache Gravatar Images in WordPress
You can use FV Gravatar Cache WordPress plugin to cache gravatar images in WordPress. This plugin comes with some decent options. You can see cached gravatar images from the plugin’s settings page itself. The plugin stores gravatar images on the server where your WordPress site is hosted.
By default, the cache directory (to cache gravatar images) is under this plugin’s folder (wp-content/plugins/fv-gravatar-cache/images/). However, you can use Custom Cache directory URL as well.
Step by step instructions to Cache Gravatar Images in WordPress:
- Install and activate FV Gravatar Cache WordPress plugin from WordPress plugins directory.
- Go to Dashboard > Settings > FV Gravatar Cache.
- Set up the basic settings of the plugin. (as per image below)
- Hit Run Cron Now, the plugin will start caching gravatar images in WordPress. It will take a while depending on the number and size of gravatar images.
- Once the caching is done. You can see the caches images under Cache information.
- Finally, click Save Changes and you’re done.
You might be wondering that what if somebody changed his/her profile image on Gravatar but your website is displaying his/her cached image from your server. You don’t need to worry about that, this plugin cache Gravatars with WordPress cron job and sync images after a certain period of time. All you need is to enable (check) this option in the plugin’s settings.
If you are using gravatar images on your WordPress site, you must consider to cache gravatar images. As caching gravatar images will help to load your website faster and optimize your site speed. Faster loading website is good for user experience as well as SEO and rankings of your website.
Are you sure? You Leverage Browser Caching in WordPress for Best Performance.
I hope this article help you to cache gravatar images in WordPress to speed up your site.If you are using some other method or plugin to cache gravatar images in WordPress, feel free to share with me and other readers via the comment section below.