[WordPress] 外掛分享: Delete Expired Transients

首頁外掛目錄 › Delete Expired Transients
WordPress 外掛 Delete Expired Transients 的封面圖片
5,000+
安裝啟用
★★★★★
5/5 分(13 則評價)
106 天前
最後更新
問題解決
WordPress 3.7+ PHP 5.3+ v2.0.7 上架:2013-07-26

內容簡介

刪除 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。它會從資料庫中刪除一些舊信息,可能會減少網站的個人身份信息泄漏風險。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.7) 或搜尋安裝

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

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon