WP Manifestindependent plugin directory
manifest / performance / omni-wp-perf-hardening

Omni Performance Hardening

Omni Performance Hardening — single-file WordPress plugin that tames expensive endpoints (search scans, archive queries, low-value feeds, oEmbed, XML-RPC) with CDN-friendly cache headers. 收斂 WordPress 高成本端點的單檔外掛,並提供 CDN 友善快取標頭。

by ivanusto · github.com/ivanusto/omni-wp-perf-hardening · website

2stars
22release downloads
0forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/ivanusto/omni-wp-perf-hardening/releases/download/v1.9.0/omni-performance-hardening-1.9.0.zip

From the readme

Omni Performance Hardening 一支單檔外掛(可作為一般外掛或 must-use plugin 安裝),用來收斂 WordPress 站台上最消耗資源的幾類請求:站內搜尋的全表掃描、封存頁的 SQLCALCFOUNDROWS、低價值 Feed 與外部 oEmbed 探索,並為 CDN 提供正確的快取標頭。 適用情境為內容量大、爬蟲流量高的站台(新聞、媒體、內容聚合),特別是文章數上萬、標籤數逼近或超過文章數的站。 解決什麼問題 | 症狀 | 成因 | 本外掛的處理 | |---|---|---| | PHP-FPM worker 被十秒級請求佔滿 | 站內搜尋 LIKE '%...%' 無法使用索引 | 過濾垃圾關鍵字、限縮 posttype / poststatus、選擇性只比對標題與摘要 | | 資料庫 CPU 持續偏高 | 側邊欄 widget 的 SQLCALCFOUNDROWS 掃描全部符合列 | 次要查詢可選擇性套用 nofoundrows(預設關閉,見下方警告) | | 爬蟲抓取量遠超實際內容量 | 每個 term 都有封存頁與 Feed,數量等同 term 總數 | 薄內容標籤頁 noindex、低價值 Feed 回 410 | | CDN 顯示 cf-cache-status: DYNAMIC | 404 與封存頁缺少可快取的 Cache-Control | 依端點類型送出對應的 max-age / s-maxage | | 訪客請求被外部 API 拖住 | 外掛在前台呼叫第三方服務且逾時設定過長 | 僅對「未登入訪客的前台請求」套用逾時上限 | 安裝 方式 A:一般外掛(建議給需要後台調參的站台) 1. 從 GitHub 下載 ZIP(Code → Download ZIP),或抓 Releases 的外掛壓縮檔 2. 後台「外掛 → 安裝外掛 → 上傳外掛」上傳並啟用 3. 於「設定 → Omni 效能強化」逐項調整參數 啟用與停用時會自動重建 rewrite rules,無需手動 flush。 方式 B:mu-plugin(建議給有主機權限、想確保外掛無法被後台停用的站台) 外掛會在版本變動時自動重建 rewrite rules(mu-plugin 模式沒有啟用 hook,故改以版本編號比對觸發),一般無需手動處理。若 /embed/ 之類的路由行為與設定不符,可執行 wp rewrite flush --path=/var/www/html 強制重建。 mu-plugin 模式同樣有「設定 → Omni 效能強化」後台頁可用。兩種方式同時安裝時只有先載入的 mu-plugin 版生效。 介面源語言為英文,languages/ 內附繁體中文(zhTW)翻譯,依站台語系自動切換。mu-plu

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v1.9.0 Aug 5, 2026 omni-performance-hardening-1.9.0.zip 2
v1.8.0 Aug 5, 2026 omni-performance-hardening-1.8.0.zip 2
v1.7.0 Aug 1, 2026 omni-performance-hardening-1.7.0.zip 13
v1.6.0 Jul 31, 2026 omni-performance-hardening-1.6.0.zip 2
v1.5.0 Jul 31, 2026 omni-performance-hardening-1.5.0.zip 1
v1.4.0 Jul 31, 2026 omni-performance-hardening-1.4.0.zip 1
v1.3.0 Jul 31, 2026 perf-hardening-1.3.0.zip 1