內容簡介
Optimum Gravatar Cache 可以讓您建立一個本地緩存,其中包含優化的 Gravatar 複本。優化是通過調整頭像的大小到您網站所使用的尺寸以及內部優化圖像來實現的。優化操作旨在減少外掛程式提供的每個頭像的大小。
該外掛使用 WordPress CRON 執行較重的任務。頭像會在後台調整大小。頭像也會在後台內部進行優化。除非在必要的情況下需要在頁面請求中調整頭像的大小。
只要使用 WordPress 的 get_avatar() 函數或 BuddyPress 的 bp_member_avatar() 函數,該外掛就會處理您網站中的所有 Gravatar。可以與插件、佈景主題等配合使用。
此外掛允許您自定義頭像默認值。只要用戶/訪客沒有自定義頭像,就會使用此頭像。這大大減少了頁面發出的請求數量,提高了用戶體驗。此外,您還可以使用網站的佈景主題來裝飾頭像默認值。
配置且啟用後,該外掛會為所有 Gravatar 提供服務。當根據請求收集的尺寸以及在外掛程式頁面上配置的尺寸進行動態緩存時,它就會後台創建緩存。當頭像已經存在緩存中時,就會由外掛程式提供該頭像。外掛程式會定期檢查用戶是否在 gravatar.com 上更新了其 Gravatar。如果是的話,它會在本地進行更新,以此方式保持更新的快取。
此外掛旨在實現以下目標:
與頭像本地緩存一起運作;
減少每頁請求數量,從而減少加載所有文件所需的總時間。這是因為大多數用戶都沒有自定義頭像,因此只需要下載一個文件。
通過減少頭像的大小和傳輸時間來優化所有頭像。
如果您發現任何錯誤,請聯繫我,以便我能夠盡快解決。
語言
英語 en_GB (@willstockstech)
葡萄牙語 pt_PT (@jomisica)
幫助將此外掛程式翻譯成您的語言
依賴
此外掛程式依賴以下 PHP 模塊:
php-gd 或 php-imagick(以便調整頭像的大小)
php-curl(以便使用相同的連線與 Gravatar 進行通信,以更新多個頭像)
此外掛程式還依賴 WordPress CRON,以能夠在後台解決較重的任務。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Optimum Gravatar Cache allows you to create a local cache with optimized copies of gravatars. The optimization is accomplished by resizing the avatars to the sizes used on your site, in addition to optimizing the images internally. Optimizations are performed to minimize the size of each avatar served by the plugin.
The plugin uses WordPress CRON to perform heavier tasks. Avatars are resized in the background. Avatars are optimized internally in the background. Except in certain cases where it is necessary to resize the avatars in the page request.
The plugin handles all your site’s gravatar as long as the wordpress get_avatar() function or buddypress bp_member_avatar() function is used. Works with plugins, themes, etc.
The plugin allows you to customize the avatar by default. This avatar is served whenever the user / visitor does not have a custom gravatar. This greatly reduces the number of requests made by your page, improving the user experience. Besides allowing to frame the avatar by default with the theme of your site.
The plugin, after being configured and activated, starts by serving gravatar for all. And it begins to create the cache dynamically in the background with the sizes being collected by the requests, as well as those configured on the plug-in page. When the avatar already exists in the cache, the plugin serves the avatar in cache. The plugin periodically checks to see if the user updated their gravatar on gravatar.com if yes is updated locally. This way, keeping an updated cache.
The plugin intends the following:
Work with the gravatars locally, cache;
Reduce the number of requests per page, thus reducing the total time required to load all files. This is achieved because most users do not have a custom gravatar, and for those, only one file needs to be downloaded;
Optimize all avatars by reducing their size and transfer time again.
Please if you find any bugs of any kind please contact me so that I can solve it as soon as possible.
Languages
English en_GB (@willstockstech)
Portuguese pt_PT (@jomisica)
Help translate this plugin into your language
Dependencies
This plugin depends on the following PHP modules:
php-gd or php-imagick (So that it can resize the avatars)
php-curl (So that it can communicate with the gravatar using the same connection to update several avatars)
The plugin also depends on WordPress CRON to be able to solve the heaviest tasks in the background.
