[WordPress] 外掛分享: Fast Velocity Minify

WordPress 外掛 Fast Velocity Minify 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Fast Velocity Minify」是 2016-06-20 上架。
  • 目前有 50000 個安裝啟用數。
  • 上一次更新是 2025-02-16,距離現在已有 77 天。
  • 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.2 以上。
  • 有 194 人給過評分。
  • 論壇上目前有 1 個提問,問題解答率 0%

外掛協作開發者

alignak |

外掛標籤

pingdom | gtmetrix | pagespeed | lighthouse | PHP Minify |

內容簡介

這是一款針對開發人員和進階使用者優化 HTML、CSS 和 JS 的外掛程式。注意在安裝完畢後需要查看 HELP 標籤,手動設定適合你的網站的設定。每個網站都不同,因此預設建議可能適用或不適用於你的網站,你需要進行測試並找到如何調整你的設定。

在第一個未緩存請求期間進行縮小,縮小是在前端進行的。處理完第一個請求後,任何其他需要相同的 CSS 和 JS 文件的頁面都可以重複使用相同的生成靜態 CSS 或 JS 文件。

如果你的快取正在大幅增長,這可能意味著你的某個 CSS 或 JS 文件是動態的,每次頁面查看時都會發生變化。在這種情況下,你需要將該文件添加到忽略列表中,否則快取將無限增長(因為明顯地原始文件本身是動態的,當你進行最小化時,外掛程式會看到不同的文件)。

安裝完插件後,請仔細閱讀 HELP 欄目,瞭解可能出現的問題以及如何解決。

其他優化

我可以為你提供基於此插件的定制製作的其他優化方案。如果你想聘請我,請訪問我的個人資料鏈接瞭解更多信息。

WP-CLI 命令

清除所有快取: wp fvm purge
在網絡站點上清除所有快取: wp --url=blog.example.com fvm purge
在整個網絡上清除所有快取(Linux): wp site list --field=url | xargs -n1 -I % wp --url=% fvm purge

如何自定義快取路徑?

你需要一個公共目錄來存儲和提供縮小的快取文件。如果你需要自定義路徑和 URL,需要編輯你的 wp-config.php,添加 define('FVM_CACHE_DIR', '/absolute/path/to/example.com/your/public/directory'); 和 define('FVM_CACHE_URL', 'https://example.com/your/public/directory');。

原文外掛簡介

HTML, CSS & JS optimization plugin for developers and advanced users. Note you need to look into the HELP tab after installing the plugin and manually configure it for your site. Each site is different, so the default recommendations may or may not work for you and you will need to test and find out how to adjust your settings.
Minification is done on the frontend during the first uncached request. Once the first request is processed, any other pages that require the same set of CSS and JS files will be able to reuse the same generated static CSS or JS file.
If your cache is growing significantly, this could mean one of your CSS or JS files is dynamic and changes on every pageview. In that case, you would need to add the file to the ignore list, else the cache would grow indefinitely (because obviously the original files themselves are dynamic and when you minify, the plugin sees a different file).
Kindly read the HELP section after installing the plugin, about possible issues and how to solve them.
Additional Optimization
I can offer you additional custom made optimization on top of this plugin. If you would like to hire me, please visit my profile links for further information.
WP-CLI Commands

Purge all caches: wp fvm purge
Purge all caches on a network site: wp --url=blog.example.com fvm purge
Purge all caches on the entire network (linux): wp site list --field=url | xargs -n1 -I % wp --url=% fvm purge

How to customize the cache path ?
You need a public directory to store and serve minified cache files. If you need to customize the path and url, you need to edit your wp-config.php and add both define('FVM_CACHE_DIR', '/absolute/path/to/example.com/your/public/directory'); and define('FVM_CACHE_URL', 'https://example.com/your/public/directory'); .

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Fast Velocity Minify」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.8.9 | 3.2.9 | 3.3.0 | 3.3.1 | 3.3.3 | 3.3.4 | 3.3.5 | 3.3.6 | 3.3.7 | 3.3.8 | 3.3.9 | 3.4.0 | 3.4.1 | 3.4.2 | 3.4.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Real User Monitoring by Pingdom 》這個簡單的外掛程式能夠協助您將 Pingdom 真實使用者監控 (Real User Monitoring) 的程式碼片段新增至 WordPress 網站的 HEAD 標籤中。, 加入程式碼片段後,P...。
  • Opti MozJpeg Guetzli WebP 》WordPress Opti MozJpeg Guetzli WebP 是用於優化 WordPress 網站中高品質圖片的免費外掛程式,旨在滿足Google Pagespeed Insights的最新要求。使用此外掛後...。
  • WP-Pingdom 》什麼是 WP Pingdom?, WP Pingdom 帶來 Pingdom 自動網站監控的強大功能至您的 WordPress 博客,讓您可以以文字或圖形的形式在博客中包含您的正常運行時間統...。

文章
Filter
Apply Filters
Mastodon