[WordPress] 外掛分享: Voce Widget Cache

首頁外掛目錄 › Voce Widget Cache
WordPress 外掛 Voce Widget Cache 的封面圖片
100+
安裝啟用
尚無評分
4091 天前
最後更新
問題解決
WordPress 3.3+ v1.5.2 上架:2012-11-28

內容簡介

此外掛不會自動快取 widget!您需要自行定義哪些 widget 可以被快取。

將 widget 加入快取並指定何時需要清除快取。

$widget_cache = Voce_Widget_Cache::GetInstance();
$widget_cache->cache_widget( 'Archive_Links_Widget', array( 'save_post' ) );
$widget_cache->cache_widget( 'WP_Widget_Recent_Posts' );

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin does not cache widgets automatically! You must define which widgets get cached.
Add a widget to the cache and designate which actions the cache gets flushed on.
$widget_cache = Voce_Widget_Cache::GetInstance();
$widget_cache->cache_widget( 'Archive_Links_Widget', array( 'save_post' ) );
$widget_cache->cache_widget( 'WP_Widget_Recent_Posts' );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon