前言介紹
- 這款 WordPress 外掛「Delete Expired Transients」是 2013-07-26 上架。
- 目前有 5000 個安裝啟用數。
- 上一次更新是 2025-04-01,距離現在已有 33 天。
- 外掛最低要求 WordPress 3.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.3 以上。
- 有 13 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
webaware |
外掛標籤
cache | expired | transient | transients | wp_options |
內容簡介
刪除 WordPress 選項表 (wp_options) 中舊的、過期的暫存記錄,以防止它們膨脹您的資料庫,甚至減緩您的網站速度。
除非您使用物件快取 (例如 memcached),否則 WordPress 會將暫存記錄存儲在選項表中。許多暫存記錄會被設定一個過期時間,所以理論上它們應該在一段時間後自動消失。但現實情況是,只有在到期後再次請求時,系統才會刪除舊的暫存記錄,因此許多暫存記錄會一直留在資料庫中。隨著時間的推移,根據插件的使用情況,可能會有成千上萬甚至數百萬個過期的暫存記錄占用您的選項表空間。
刪除過期暫存記錄插件會定期執行刪除過期暫存記錄的動作。它會使用一個 SQL 查詢執行此操作,然後運行第二個查詢以查找任何孤立的過期記錄並將其刪除。
用來清除過期暫存的其他插件還有一些。這個插件的特點是快速、設定好之後自動執行以及極大的兼容性。它使用 PHP 時間來確定暫存是否過期,而非資料庫時間(可能不同)。它只完成一個工作,並且使用最少的資源在最短時間內完成。
現在已為 WordPress 多站點進行優化。
翻譯
感謝以下譯者的慷慨努力:
英語 (加拿大) (en_CA) — 英語(加拿大)翻譯團隊
英語 (英國) (en_GB) — 英語(英國)翻譯團隊
英語 (南非) (en_ZA) — 英語(南非)翻譯團隊
法語 (法國) (fr_FR) — 法語翻譯團隊
匈牙利語 (hu_HU) — 匈牙利語翻譯團隊
挪威語:Bokmål (nb_NO) — neonnero
挪威語:Nynorsk (nn_NO) — neonnero
俄語 (ru_RU) — 俄語翻譯團隊
西班牙語 (西班牙) (es_ES) — 西班牙語翻譯團隊
如果您想助力翻譯此插件,請註冊帳戶並開始翻譯。
貢獻
將插件翻譯為您所選的語言
在 GitHub 上進行分支
隱私條款
刪除過期暫存插件不會收集任何個人身份信息,也不會設置任何 cookies。它會從資料庫中刪除一些舊信息,可能會減少網站的個人身份信息泄漏風險。
原文外掛簡介
Delete old, expired transients from the WordPress options table (wp_options), to prevent them from bloating your database and even slowing down your website.
Unless you are using an object cache (like memcached), WordPress stores transient records in the options table. Many transients are given an expiration time, so in theory they should disappear after some time. In practise, because old transients are only deleted when requested again after they’ve expired, many transients stay in the database. After a while, there can be thousands or even millions of expired transients needlessly taking up space in your options table, depending on what your plugins are doing.
Delete Expired Transients schedules a daily task to delete any expired transients from the options table. It performs this operation with a single SQL query, and then runs a second query to find any orphaned expiration records and deletes them too.
There are a few other plugins around that clean up expired transients. This one is written for fast performance, set-and-forget scheduled housekeeping, and maximum compatibility. It uses the PHP time to determine whether transients are expired, not the database time (which can be different). It does only one job, and it does it well with the minimum of resources.
Now optimised for WordPress Multisite.
Translations
Many thanks to the generous efforts of our translators:
English (en_CA) — the English (Canadian) translation team
English (en_GB) — the English (British) translation team
English (en_ZA) — the English (South African) translation team
French (fr_FR) — the French translation team
Hungarian (hu_HU) — the Hungarian translation team
Norwegian: Bokmål (nb_NO) — neonnero
Norwegian: Nynorsk (nn_NO) — neonnero
Russian (ru_RU) — the Russian translation team
Spanish (es_ES) — the Spanish translation team
If you’d like to help out by translating this plugin, please sign up for an account and dig in.
Contributions
Translate into your preferred language
Fork me on GitHub
Privacy
Delete Expired Transients does not collect any personally identifying information, and does not set any cookies. It removes some old information from the database, potentially reducing a website’s exposure to leakage of personally identifying information.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Delete Expired Transients」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.1.0 | 1.1.1 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.0.6 | 2.0.7 | trunk | 2.0.4.1 |
延伸相關外掛(你可能也想知道)
WP Options Editor 》WP Options Editor 允許您輕鬆地查看、編輯、刪除和新增 WP options 表中的選項。簡單的介面允許您在同一個 WP 管理員頁面中搜索特定選項,並對其進行編輯或...。
FG Fix Serialized Strings 》此外掛修正 wp_options 資料表中的序列化字串,重新計算每個字串的長度。, 如果您在 SQL 備份檔案中進行全域搜尋/取代,這個外掛可能非常有用。, 主要功能包...。
NHR Options Table Manager 》總結: 如果你厭倦了 WordPress 選項表的大小,你並不孤單!安裝這個外掛程式,可以清楚查看表格和分析資料。, , 問題與答案:, - 你為什麼需要安裝 NHR Option...。
MySQL query cache stats 》管理員儀表板小工具,監控查詢緩存(query cache)效能統計數據- 以優化大小配置並突顯瓶頸。, 每次頁面載入都會重新執行“選項自動載入大小”的查詢,其結果大小...。