[WordPress] 外掛分享: Speed Up – Menu Cache

首頁外掛目錄 › Speed Up – Menu Cache
WordPress 外掛 Speed Up – Menu Cache 的封面圖片
50+
安裝啟用
★★★★★
5/5 分(1 則評價)
7 天前
最後更新
問題解決
WordPress 6.0+ v1.0.21 上架:2016-08-18

內容簡介

Speed Up – Menu Cache 外掛專為經典佈景主題設計,透過快取 wp_nav_menu() 的輸出,顯著提升網站性能,減少每次頁面加載時的資源浪費。

【主要功能】
• 快取 wp_nav_menu() 輸出
• 提升網站加載速度
• 無需額外配置,安裝即用
• 僅適用於經典佈景主題
• 輕量級外掛,僅 5 KB

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.21) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Speed Up – Menu Cache」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Before you install: this plugin only works with classic themes.
It caches the output of wp_nav_menu(). Block themes do not use that function: they render
navigation with the core/navigation block, which this plugin never sees. On a block theme
the plugin is active and does nothing at all. Since 2022 every default WordPress theme is a
block theme, so check which kind yours is first.
For each menu, wordpress reads data from the database and elaborated the results. This process, repeated at each page view, is a waste time and resource.
This plugin offers a caching solution that reduces this effects on performance.
The only downside is that the menu will not show the active item with a different style. This plugin cache one version of the menu for all pages.
Configurations are not required! You just have to install it and after the plugin does it all, none further action it’s required.
This plugin is very light: only 5 kb.
Caveats
If you are using user-specific dynamic menu items, this plugin will break that functionality, as it will cache the state of the first page load and any changes will not be seen. There is no per-user cache.

延伸相關外掛

文章
Filter
Mastodon