[WordPress] 外掛分享: Optimize Database after Deleting Revisions

首頁外掛目錄 › Optimize Database after Deleting Revisions
WordPress 外掛 Optimize Database after Deleting Revisions 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
100,000+
安裝啟用
★★★★
4.8/5 分(177 則評價)
957 天前
最後更新
50%
問題解決
WordPress 2.8+ PHP 5.0+ v5.1 上架:2011-11-22

內容簡介

這個外掛是一個「一鍵式」WordPress資料庫清理/優化器。

主要功能

刪除文章、頁面和/或自訂文章類型的修訂版本(您可以選擇保留最近的「X」個修訂版本,並選擇刪除舊於某個日期的修訂版本)
刪除回收站的文章、頁面和留言(可選)
刪除垃圾留言(可選)
刪除未使用的標籤(可選)
刪除「過期或所有短暫」(可選)
刪除「pingbacks」和「trackbacks」(可選)
清除「OEMBED cache」(可選)
刪除「孤立文章meta項目」
優化資料庫表格(您可以選擇排除某些表格、甚至特定文章/頁面不進行優化)
創建優化記錄(可選)
優化可定時運行,可選擇每小時運行一次、每天兩次、每天一次或每週一次,在特定時間執行(可選)
在管理工具列中提供「優化DB(1點擊)」連結(可選)
在管理選單中提供「優化資料庫」圖示(可選)
適用於多站點:一鍵優化整個網絡中的所有站點

設定

您可以在 WP管理員面板 » 優化資料庫中找到設定頁面,或通過 WP管理員面板 » 優化資料庫圖示 (取決於設置)

排除特定文章/頁面的修訂版本刪除

如果您想為特定的文章/頁面保留修訂版本(不管其他設置如何),請為該文章/頁面創建一個名為「keep_revisions」的自定義欄位,並給它設置值「Y」

開始分析/優化

您可以在 WP管理員面板 » 優化資料庫中開始優化。
注意:如果您使用定時器,則優化會自動運行!
注意:您也可以點擊管理工具列中的「優化DB(1點擊)」連結(如果已啟用)
您可以單擊以下按鈕之一:
「分析(摘要):分析資料庫並提供將被清理的數量計數
「分析(詳細):分析資料庫並提供將被刪除的詳細報告
「優化(摘要):實際刪除項目並提供已刪除數量的計數
「優化(詳細):實際刪除項目並提供已刪除數量的詳細報告

多站點支援

以網絡管理員身分安裝外掛(網絡管理員 »外掛)
「網絡啟用」外掛
只能在主網站上配置和運行該外掛,但它將優化所有子網站!

從 Unix crontab執行插件

如果您無法使用WPCron,但可以編輯Unix crontab:

在您的網站根目錄中創建一個 .php 檔案,並添加以下內容:
<?php
define('RUN_OPTIMIZE_DATABASE', true);
require_once('wp-load.php');
?>

然後從您的crontab啟動 .php 檔案!

支援的語言

白俄羅斯語 [be_BY] -由Natasha翻譯- https://www.ustarcash.com/ -關鍵字UStarCash
丹麥語[da_DK]-由Alexander Leo-Hansen翻譯-http://alexanderleohansen.dk
荷蘭語[nl_NL] - 由Rolf van Gelder, CAGE Web Design翻譯- http://cagewebdev.com
英語 [en_US] - 由Rolf van Gelder, CAGE Web Design翻譯 - http://cagewebdev.com

外掛標籤

開發者團隊

⬇ 下載最新版 (v5.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Optimize Database after Deleting Revisions」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin is a ‘One Click’ WordPress Database Cleaner / Optimizer.
Main Features

Deletes revisions of posts, pages and / or custom post types (you optionally can keep an ‘x’-amount of the most recent revisions and you can choose to delete revisions older than…)
Deletes trashed posts, pages and comments (optional)
Deletes spammed comments (optional)
Deletes unused tags (optional)
Deletes ‘expired or all transients’ (optional)
Deletes ‘pingbacks’ and ‘trackbacks’ (optional)
Clears the ‘OEMBED cache’ (optional)
Deletes ‘orphan postmeta items’
Optimizes the database tables (optionally you can exclude certain tables, or even specific posts/pages, from optimization)
Creates a log of the optimizations (optional)
Optimization can be scheduled to automatically run once hourly, twice daily, once daily or once weekly at a specific time (optional)
‘Optimize DB (1 click)’ link in the admin bar (optional)
‘Optimize Database’ Icon in the admin menu (optional)
MULTISITE compatible: optimizes all sites in the network with one click

Settings
You can find the settings page in the WP Admin Panel » Optimize Database -or- via the WP Admin Panel » Optimize Database icon (depends on settings)
Excluding specific posts/pages from deleting revisions
If you want to keep revisions for a specific post/page (no matter what the other settings are), create a custom field named ‘keep_revisions’ for that post/page and give it the value ‘Y’
Starting the Analysis / Optimization
You can start the Optimization in the WP Admin Panel » Optimize Database.
Note: if you use the Scheduler the Optimization will run automatically!
Note: you also can click the ‘Optimize DB (1 click)’ link in the admin bar (if enabled)
You can click one of the following buttons:
‘Analyze (summary): analyzes the database and gives the count of what will be cleaned
‘Analyze (detail): analyzes the database and gives a detailed report of what will be deleted
‘Optimize (summary): actually deletes the items and gives the count of what has been deleted
‘Optimize (detail): actually deletes the items and gives a detailed report of what has been deleted
Multisite Support

Install the plugin as Network Administrator (Network Admin » Plugins)
‘Network Activate’ the plugin
You only can configure and run the plugin on the main network site, but it will optimize ALL the sub-sites too!

Running the plug in from a Unix crontab
In case you cannot use WPCron, but you can edit the Unix crontab:
Create a .php file, in the root directory of your site, with:

Then, start the .php file from your crontab!
Supported languages

Belarus [be_BY] – translated by Natasha – https://www.ustarcash.com/ – keyword UStarCash
Danish [da_DK] – translated by Alexander Leo-Hansen – http://alexanderleohansen.dk
Dutch [nl_NL] – translated by Rolf van Gelder, CAGE Web Design – http://cagewebdev.com
English [en_US] – translated by Rolf van Gelder, CAGE Web Design – http://cagewebdev.com
French [fr_FR] – translated by Guillaume Blet – http://www.mycinetheque.fr
German [de_DE] – translated by Kolja Spyra
Indonesian [id_ID] – translated by ChameleonJohn.com
Italian [it_IT] – translated by Fabio Marzocca
Persian [fa_IR] – translated by Milad Mordi, http://seodaramal.ir
Portuguese [po_BR] – translated by Rede Sul Mineira de Comunicações
Russian [ru_RU] – translated by Vadim Sokhin, PluginZone – http://pluginzone.ru
Serbian [sr_RS] – translated by Ogi Djuraskovic, FirstSiteGuide – http://firstsiteguide.com
Swedish [sv_SE] – translated by P.E.
Turkish [tr_TR] – translated by Keremcan Buyuktaskin
Ukranian [uk_UA] – translated by Anna Goriacha, Coupofy – http://coupofy.com

Author
CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands – http://cagewebdev.com – http://rvg.cage.nl
Plugin URL

Optimize Database after Deleting Revisions – WordPress plugin


Download URL

Optimize Database after Deleting Revisions


Disclaimer
NO WARRANTY, USE IT AT YOUR OWN RISK!
Plugins by CAGE Web Design | Rolf van Gelder
WordPress plugins created by CAGE Web Design | Rolf van Gelder
http://cagewebdev.com/category/news-tech-art/wordpress/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon