[WordPress] 外掛分享: Bypass Transients

首頁外掛目錄 › Bypass Transients
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
3381 天前
最後更新
問題解決
WordPress 3.0+ v1.0.0 上架:2016-12-07

內容簡介

我們都知道快取(Caching)對於網站的效能很重要。但是在開發或除錯時,快取可能造成些許困擾。這就是這個外掛的用意所在。
您可以透過管理員工具列上的連結,針對每頁進行繞過任何 get_transient() 的呼叫。

特性:

一鍵繞過 Transients
支援保存至資料庫的 Transients
支援物件快取(Object Cache) - 目前僅經過 memecached 的測試
將會自動偵測所有新的 Transients 設定。
整合 Debug Bar,提供已知、已找到和已繞過的 Transients 列表等詳細資訊。

用法:

安裝和啟用外掛,就像平常一樣。當適當的類別載入時,暫停 Transients。任何時候設定 Transient,外掛將偵測到並加入已知清單中。
標準 Transients(保存至資料庫)

啟用後,外掛將從數據庫中取出所有現有的 Transients,並將其添加到已知 Transients 的列表中。

管理員工具列將新增兩個按鈕:

繞過 Transients:繞過已知 Transients
掃描 Transients:重新載入從數據庫中獲取的 Transients。

物件快取的 Transients(例如 memcached)
這些 Transients 不會存儲在資料庫中,因此最佳的方式是使用 Flush Transients 按鈕,並重新載入頁面以利用外掛的 Transient 偵測功能。
可能需要兩個頁面載入;第一個載入用於偵測和添加 Transient,第二個載入用於實際繞過它。

管理員工具列按鈕:

繞過 Transients:繞過已知 Transients
Flush Transients:調用 wp_object_cache_flush()以使快取失效。

免責聲明
此外掛不應在生產環境中運行。它只適用於本地開發和可能的輔助開發操作。由於本質限制,此外掛可能會減緩網站速度。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Bypass Transients」→ 直接安裝(推薦)

原文外掛簡介

We all know that caching is FTW. But, caching can be a nuisance when trying to develop or debug. That’s where this plugin comes in.
You can bypass any get_transient() calls on a per page basis by clicking the link in the Admin Bar.
Features:

Bypass Transients with a single click
Supports Transients saved to the database
Object Cache support – currently only tested with memecached
Will automatically detected any new transients set.
Debug Bar integration to provide details such as lists of known, found and bypassed transients.

Usage:
Install and activate the plugin as normal. Suspend transients will loading the appropriate class based on the results wp_using_ext_object_cache(). Anytime a transient set, the plugin will detect it and add it to the
known list.
Standard Transients ( saved to the database )
When activated, the plugin will retrieve any existing transients from the database and add them to the known transients list.
The Admin Bar will have two new buttons:

Bypass Transients: bypasses known transients
Scan Transients: reloads the transients from the database.

Object Cached Transients ( i.e memcached )
These transients are not stored in the database so the best way to get them is to use the Flush Transients button and reload the page to utilize the transient detection feature of the plugin.
It may require two page loads; One to detect and add the transient, and then a second to actually bypass it.
Admin Bar buttons:

Bypass Transients: bypasses known transients
Flush Transients: Calls wp_object_cache_flush() to invalidate the caches.

Disclaimer
This plugin should NOT be run in a production environment. It is meant for local and MAYBE staging development. By it’s very nature this will slow
your site down.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon