| 1 |
=== Optimize Database after Deleting Revisions === |
| 2 |
Contributors: cageehv, nerdpressteam |
| 3 |
Tags: database, cleanup, delete, revisions, optimize, trash, spam, trashed, database size, scheduler, transients, unused tags |
| 4 |
Author URI: https://www.nerdpress.net |
| 5 |
Author: NerdPress |
| 6 |
Requires at least: 2.8 |
| 7 |
Requires PHP: 5.6 |
| 8 |
Tested up to: 6.4 |
| 9 |
Stable tag: 5.2 |
| 10 |
Version: 5.2 |
| 11 |
License: GPLv2 or later |
| 12 |
One-click database optimization with precise revision cleanup and flexible scheduling. Speeding up sites since 2011! |
| 13 |
|
| 14 |
== Description == |
| 15 |
|
| 16 |
NerdPress has adopted Optimize Database After Deleting Revisions! [Read the announcement here.](https://www.nerdpress.net/announcing-optimize-database/) |
| 17 |
|
| 18 |
This plugin is a 'One Click' WordPress database cleaner & optimizer, with precise revision cleanup and flexible scheduling. |
| 19 |
|
| 20 |
= Main Features = |
| 21 |
* 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...) |
| 22 |
* Deletes trashed posts, pages and comments (optional) |
| 23 |
* Deletes spammed comments (optional) |
| 24 |
* Deletes unused tags (optional) |
| 25 |
* Deletes 'expired or all transients' (optional) |
| 26 |
* Deletes 'pingbacks' and 'trackbacks' (optional) |
| 27 |
* Clears the 'OEMBED cache' (optional) |
| 28 |
* Deletes 'orphan postmeta items' |
| 29 |
* Optimizes the database tables (optionally you can exclude certain tables, or even specific posts/pages, from optimization) |
| 30 |
* Creates a log of the optimizations (optional) |
| 31 |
* Optimization can be scheduled to automatically run once hourly, twice daily, once daily or once weekly at a specific time (optional) |
| 32 |
* 'Optimize DB (1 click)' link in the admin bar (optional) |
| 33 |
* 'Optimize Database' Icon in the admin menu (optional) |
| 34 |
* MULTISITE compatible: optimizes all sites in the network with one click |
| 35 |
|
| 36 |
= Settings = |
| 37 |
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) |
| 38 |
|
| 39 |
= Excluding specific posts/pages from deleting revisions = |
| 40 |
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'<br> |
| 41 |
|
| 42 |
= Starting the Analysis / Optimization = |
| 43 |
You can start the Optimization in the WP Admin Panel » Optimize Database.<br> |
| 44 |
Note: if you use the Scheduler the Optimization will run automatically!<br> |
| 45 |
Note: you also can click the 'Optimize DB (1 click)' link in the admin bar (if enabled)<br> |
| 46 |
You can click one of the following buttons:<br> |
| 47 |
'Analyze (summary): analyzes the database and gives the count of what will be cleaned<br> |
| 48 |
'Analyze (detail): analyzes the database and gives a detailed report of what will be deleted<br> |
| 49 |
'Optimize (summary): actually deletes the items and gives the count of what has been deleted<br> |
| 50 |
'Optimize (detail): actually deletes the items and gives a detailed report of what has been deleted<br> |
| 51 |
|
| 52 |
= Multisite Support = |
| 53 |
* Install the plugin as Network Administrator (Network Admin » Plugins) |
| 54 |
* 'Network Activate' the plugin |
| 55 |
* You only can configure and run the plugin on the main network site, but it will optimize ALL the sub-sites too! |
| 56 |
|
| 57 |
= Running the plug in from a Unix crontab = |
| 58 |
In case you cannot use WPCron, but you can edit the Unix crontab:<br><br> |
| 59 |
Create a .php file, in the root directory of your site, with:<br> |
| 60 |
<?php<br> |
| 61 |
define('RUN_OPTIMIZE_DATABASE', true);<br> |
| 62 |
require_once('wp-load.php');<br> |
| 63 |
?><br><br> |
| 64 |
Then, start the .php file from your crontab!<br> |
| 65 |
|
| 66 |
= Supported languages = |
| 67 |
* Belarus [be_BY] - translated by Natasha - https://www.ustarcash.com/ - keyword UStarCash |
| 68 |
* Danish [da_DK] - translated by Alexander Leo-Hansen - http://alexanderleohansen.dk |
| 69 |
* Dutch [nl_NL] - translated by Rolf van Gelder, CAGE Web Design - http://cagewebdev.com |
| 70 |
* English [en_US] - translated by Rolf van Gelder, CAGE Web Design - http://cagewebdev.com |
| 71 |
* French [fr_FR] - translated by Guillaume Blet - http://www.mycinetheque.fr |
| 72 |
* German [de_DE] - translated by Kolja Spyra |
| 73 |
* Indonesian [id_ID] - translated by ChameleonJohn.com |
| 74 |
* Italian [it_IT] - translated by Fabio Marzocca |
| 75 |
* Persian [fa_IR] - translated by Milad Mordi, http://seodaramal.ir |
| 76 |
* Portuguese [po_BR] - translated by Rede Sul Mineira de Comunicações |
| 77 |
* Russian [ru_RU] - translated by Vadim Sokhin, PluginZone - http://pluginzone.ru |
| 78 |
* Serbian [sr_RS] - translated by Ogi Djuraskovic, FirstSiteGuide - http://firstsiteguide.com |
| 79 |
* Swedish [sv_SE] - translated by P.E. |
| 80 |
* Turkish [tr_TR] - translated by Keremcan Buyuktaskin |
| 81 |
* Ukranian [uk_UA] - translated by Anna Goriacha, Coupofy - http://coupofy.com |
| 82 |
|
| 83 |
= Disclaimer = |
| 84 |
NO WARRANTY, USE IT AT YOUR OWN RISK! MAKE BACKUPS FIRST! |
| 85 |
|
| 86 |
== Installation == |
| 87 |
|
| 88 |
= Single site = |
| 89 |
* Upload the Plugin to the `/wp-content/plugins/` directory |
| 90 |
* Activate the plugin in the WP Admin Panel » Plugins |
| 91 |
* Change the settings (if needed) in the WP Admin Panel » Settings » Optimize Database -or- via the WP Admin Panel » Optimize Database icon (depends on settings) |
| 92 |
|
| 93 |
= Multisite = |
| 94 |
* Install the plugin as Network Administrator (Network Admin » Plugins) |
| 95 |
* 'Network Activate' the plugin |
| 96 |
* The settings are the same for ALL sites in the network, so if you change a setting for one site, it will be used for all other sites. |
| 97 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network! |
| 98 |
|
| 99 |
== Changelog == |
| 100 |
= 5.2 [01/31/2024] = |
| 101 |
* NerdPress has adopted Optimize Database After Deleting Revisions! [Read the announcement here.](https://www.nerdpress.net/announcing-optimize-database/) |
| 102 |
* Security improvement: Additional CSRF hardening. |
| 103 |
* Security improvement: Add capability checks. |
| 104 |
* Security improvement: Improve sanitization of database queries. |
| 105 |
* Fix: PHP 8 Deprecation Notice. |
| 106 |
|
| 107 |
= 5.1.1 [01/24/2024] = |
| 108 |
* Security improvement: Hardens links to prevent CSRF. |
| 109 |
* Security fix: Implements proper preparation of queries. |
| 110 |
|
| 111 |
= 5.1 [08/02/2023] = |
| 112 |
* BUG FIX: Fixed the CSRF security issue |
| 113 |
|
| 114 |
= 5.0.10 [10/26/2021] = |
| 115 |
* BUG FIX: set_time_limit fixed |
| 116 |
|
| 117 |
= 5.0.9 [08/04/2021] = |
| 118 |
* BUG FIX: Syntax error corrected |
| 119 |
|
| 120 |
= 5.0.8 [08/03/2021] = |
| 121 |
* BUG FIX: Some performance inprovements (2nd try) |
| 122 |
|
| 123 |
= 5.0.7 [07/24/2021] = |
| 124 |
* BUG FIX: Changed back to v5.0.4 |
| 125 |
|
| 126 |
= 5.0.6 [07/23/2021] = |
| 127 |
* BUG FIX: Scheduler fixed |
| 128 |
|
| 129 |
= 5.0.5 [07/20/2021] = |
| 130 |
* BUG FIX: Some performance inprovements |
| 131 |
|
| 132 |
= 5.0.4 [02/26/2021] = |
| 133 |
* BUG FIX: Field names INFORMATION_SCHEMA corrected |
| 134 |
|
| 135 |
= 5.0.3 [11/17/2020] = |
| 136 |
* BUG FIX: Creating log table if not exists |
| 137 |
|
| 138 |
= 5.0.2 [11/06/2020] = |
| 139 |
* BUG FIX: Deletion of orphaned term relationships deactivated |
| 140 |
|
| 141 |
= 5.0.1 [09/10/2020] = |
| 142 |
* BUG FIX: Deletion of Duplicated Postmeta entries deactivated |
| 143 |
|
| 144 |
= 5.0 [08/14/2020] = |
| 145 |
* New: Deletion of Duplicated Postmeta entries |
| 146 |
|
| 147 |
= 4.9.1 [05/17/2020] = |
| 148 |
* BUG FIX: Fixed a bug for deleting orphans |
| 149 |
|
| 150 |
= 4.9 [04/10/2020] = |
| 151 |
* NEW: Deletion of orphaned term relationships |
| 152 |
|
| 153 |
= 4.8.8 [12/02/2019] = |
| 154 |
* BUG FIX: Fixed an (innocent) warning (while cleaning) |
| 155 |
|
| 156 |
= 4.8.7 [09/28/2019] = |
| 157 |
* BUG FIX: Bug fix for 'Delete revisions older than' |
| 158 |
|
| 159 |
= 4.8.6 [09/22/2019] = |
| 160 |
* BUG FIX: Some bug fixes + other minor changes |
| 161 |
|
| 162 |
= 4.8.5 [09/19/2019] = |
| 163 |
* BUG FIX: Logging bug fixed |
| 164 |
|
| 165 |
= 4.8.4 [09/07/2019] = |
| 166 |
* CHANGE: Improved performance |
| 167 |
|
| 168 |
= 4.8.3 [09/01/2019] = |
| 169 |
* BUG FIX: Scheduler bug fixed |
| 170 |
|
| 171 |
= 4.8.2 [08/15/2019] = |
| 172 |
* CHANGE: Rewrote the deletion of (expired) transients |
| 173 |
|
| 174 |
= 4.8.1 [07/15/2019] = |
| 175 |
* BUG FIX: Scheduler bug fixed |
| 176 |
|
| 177 |
= 4.8.0 [05/26/2019] = |
| 178 |
* NEW: New analyze / optimize options (summary or detail) |
| 179 |
|
| 180 |
= 4.7.4 [01/05/2019] = |
| 181 |
* CHANGE: 'set_time_limit' warning suppressed |
| 182 |
* CHANGE: Some lay-out fixes |
| 183 |
* NEW: Added a 'help'-button on the settings page |
| 184 |
|
| 185 |
= 4.7.3 [12/12/2018] = |
| 186 |
* CHANGE: The deletion of transients has been fully rewritten and is many times faster now! |
| 187 |
* CHANGE: Increased the time_limit |
| 188 |
* CHANGE: German translations have been updated |
| 189 |
|
| 190 |
= 4.7.2 [11/12/2018] = |
| 191 |
* BUG FIX: Fixed a MySQL query |
| 192 |
|
| 193 |
= 4.7.1 [11/11/2018] = |
| 194 |
* BUG FIX: Fixed an 'undefined variable' notice |
| 195 |
|
| 196 |
= 4.7 [11/10/2018] = |
| 197 |
* NEW: Optional analysis before actual cleaning |
| 198 |
* CHANGE: Many minor improvements |
| 199 |
* BUG FIX: Several bug fixes |
| 200 |
|
| 201 |
= 4.6.3 [08/23/2018] = |
| 202 |
* CHANGE: Removed the MyISAM engine for the log table (now it uses the default-storage-engine of the database) |
| 203 |
|
| 204 |
= 4.6.2 [06/05/2018] = |
| 205 |
* BUG FIX: Fixed a javascript bug for the 'Clear Log' confirmation |
| 206 |
* NEW: PayPal donation button |
| 207 |
|
| 208 |
= 4.6.1 [06/04/2018] = |
| 209 |
* BUG FIX: Fixed the WordPress Admin Menu dropdowns on 'View Log' page |
| 210 |
|
| 211 |
= 4.6 [05/08/2018] = |
| 212 |
* NEW: Logging system has been totally rewritten (from now it will store the logs in the database) |
| 213 |
* NEW: Export the log to a CSV file |
| 214 |
|
| 215 |
= 4.5.2 [03/21/2018] = |
| 216 |
* NEW: Clear OEMBED cache |
| 217 |
* BUG FIX: Translation corrected ('Next scheduled run: 0 days, 9 hours, 35 minutes and 27 seconds') |
| 218 |
|
| 219 |
= 4.5.1 [01/29/2018] = |
| 220 |
* NEW: Added last run seconds |
| 221 |
* NEW: French translation added |
| 222 |
* BUG FIX: Fixed a typo ('DELETEED') |
| 223 |
|
| 224 |
= 4.5 [01/08/2018] = |
| 225 |
* CHANGE: Revamped and improved the scheduler code |
| 226 |
|
| 227 |
= 4.4.3 [01/06/2018] = |
| 228 |
* BUG FIX: Fixed some scheduler time issues |
| 229 |
|
| 230 |
= 4.4.2 [12/14/2017] = |
| 231 |
* NEW: Skip standard posttype 'oembed_cache' |
| 232 |
* BUG FIX: Hide the settings link (plugin page) for multi site sites (except for the main network site) |
| 233 |
|
| 234 |
= 4.4.1 [11/06/2017] = |
| 235 |
* BUG FIX: Bug in counting excluded tables fixed |
| 236 |
|
| 237 |
= 4.4 [08/22/2017] = |
| 238 |
* NEW: New options to delete revisions of posts, pages and / or specific custom post types |
| 239 |
|
| 240 |
= 4.3.2 [08/12/2017] = |
| 241 |
* CHANGE: Fixed some (innocent) PHP warnings |
| 242 |
|
| 243 |
= 4.3.1 [08/10/2017] = |
| 244 |
* NEW: New option for deleting ALL transients (not the expired ones only) |
| 245 |
|
| 246 |
= 4.3 [07/24/2017] = |
| 247 |
* NEW: New setting added: Delete revisions of (POSTS and PAGES, POSTS only or PAGES only) |
| 248 |
* CHANGE: Some code clean-up and minor changes |
| 249 |
|
| 250 |
= 4.2.3 [07/05/2017] = |
| 251 |
* CHANGE: Extra save button added to the settings page |
| 252 |
|
| 253 |
= 4.2.2 [04/06/2017] = |
| 254 |
* NEW: Indonesian (id_ID) translation added |
| 255 |
|
| 256 |
= 4.2.1 [09/23/2016] = |
| 257 |
* CHANGE: Fixed some (innocent) warnings |
| 258 |
|
| 259 |
= 4.2.0 [09/16/2016] = |
| 260 |
* NEW: Added a 'monthly' schedule to the scheduler |
| 261 |
|
| 262 |
= 4.1.10 [07/15/2016] = |
| 263 |
* BUG FIX: Bug fix for 4.1.9 |
| 264 |
|
| 265 |
= 4.1.9 [07/15/2016] = |
| 266 |
* CHANGE: 'Running indicator' added |
| 267 |
|
| 268 |
= 4.1.8 [06/24/2016] = |
| 269 |
* CHANGE: Reverted back to 4.1.6 due to some problems. Sorry! |
| 270 |
|
| 271 |
= 4.1.7 [06/23/2016] = |
| 272 |
* CHANGE: Orphaned media items will be deleted too now |
| 273 |
|
| 274 |
= 4.1.6 [05/20/2016] = |
| 275 |
* NEW: Belarus (be_BY) translation added (thanks Natasha!) |
| 276 |
|
| 277 |
= 4.1.5 [03/11/2016] = |
| 278 |
* NEW: Turkish (tr_TR) translation added (thanks Keremcan Buyuktaskin!) |
| 279 |
|
| 280 |
= 4.1.4 [03/02/2016] = |
| 281 |
* NEW: Custom field 'keep_revisions', for excluding the deletion of revisions for specific posts/pages |
| 282 |
* NEW: Run the optimization from a Unix crontab (if possible) |
| 283 |
|
| 284 |
= 4.1.3 [02/22/2016] = |
| 285 |
* BUG FIX: Saving settings didn't work well for multi-sites |
| 286 |
|
| 287 |
= 4.1.2 [02/14/2016] = |
| 288 |
* NEW: Brasilian Portuguese (po_BR) translation added |
| 289 |
* NEW: Network: True added to the plugin header |
| 290 |
|
| 291 |
= 4.1.1 [01/17/2016] = |
| 292 |
* CHANGE: Use can use the 'Delete revisions older than' AND 'Keep max number of revisions' options at the same time! |
| 293 |
|
| 294 |
= 4.1 [01/14/2016] = |
| 295 |
* NEW: New option: delete revisions older than... |
| 296 |
* NEW: Persian translation (fa_IR) added |
| 297 |
* CHANGE: For multi-site installations you only can use the plugin on the Main site, but all other sites will be cleaned too. |
| 298 |
* CHANGE: Some minor updates / changes |
| 299 |
|
| 300 |
= 4.0.3 [12/17/2015] = |
| 301 |
* BUG FIX: Bug fix for Cron Schedules |
| 302 |
* BUG FIX: Un-installation generated an error |
| 303 |
* CHANGE: Some minor updates / changes |
| 304 |
|
| 305 |
= 4.0.2 [11/28/2015] = |
| 306 |
* BUG FIX: Settings weren't saved correctly for MultiSites |
| 307 |
|
| 308 |
= 4.0.1 [11/27/2015] = |
| 309 |
* NEW: New option: optimize InnoDB tables too |
| 310 |
* BUG FIX: Localization fixed for extra cron schedules |
| 311 |
* BUG FIX: De-activation issue on update fixed |
| 312 |
|
| 313 |
= 4.0 [11/22/2015] = |
| 314 |
* NEW: Total rewrite of the code (OO code) |
| 315 |
* CHANGE: Many changes and bug fixes |
| 316 |
|
| 317 |
= 3.5.1 [11/01/2015] = |
| 318 |
* BUG FIX: Views are skipped from the optimization |
| 319 |
|
| 320 |
= 3.5 [10/24/2015] = |
| 321 |
* CHANGE: Stylesheet is only loaded on required admin pages |
| 322 |
|
| 323 |
= 3.4.9 [10/23/2015] = |
| 324 |
* BUG FIX: Bug fixed for deleting unused tags |
| 325 |
|
| 326 |
= 3.4.8 [09/14/2015] = |
| 327 |
* BUG FIX: Bug fixed for deleting transients |
| 328 |
|
| 329 |
= 3.4.7 [08/30/2015] = |
| 330 |
* BUG FIX: Transients are now deleted using the delete_transient() / delete_site_transient() functions |
| 331 |
|
| 332 |
= 3.4.6 [06/21/2015] = |
| 333 |
* NEW: Danish translation (da_DK) added |
| 334 |
|
| 335 |
= 3.4.5 [06/07/2015] = |
| 336 |
* NEW: Russian translation (ru_RU) added |
| 337 |
|
| 338 |
= 3.4.4 [06/03/2015] = |
| 339 |
* NEW: German translation (de_DE) added |
| 340 |
|
| 341 |
= 3.4.3 [06/01/2015] = |
| 342 |
* NEW: Swedish translation (sv_SE) added |
| 343 |
|
| 344 |
= 3.4.2 [05/10/2015] = |
| 345 |
* BUG FIX: fixed a bug (options didn't get saved in old multisite installs) |
| 346 |
|
| 347 |
= 3.4.1 [04/26/2015] = |
| 348 |
* BUG FIX: fixed a bug for the excluded tables (didn't work anymore) |
| 349 |
|
| 350 |
= 3.4 [04/24/2015] = |
| 351 |
* NEW: Ukrainian translation (uk_UA) added |
| 352 |
* CHANGE: updates for Dutch and Italian translations |
| 353 |
* CHANGE: a new, fresh look! |
| 354 |
* CHANGE: a better way to show the EXCLUDED tables on the settings page |
| 355 |
|
| 356 |
= 3.3.1 [04/08/2015] = |
| 357 |
* BUG FIX: fixed a bug with the scheduler (it didn't clean everything) |
| 358 |
|
| 359 |
= 3.3 [03/27/2015] = |
| 360 |
* NEW: MULTISITE support added (second try ;-)) |
| 361 |
* CHANGE: various minor improvements |
| 362 |
* BUG FIX: sub-sites are accessible again (in the admin panel) |
| 363 |
|
| 364 |
= 3.2.1 [03/18/2015] = |
| 365 |
* CHANGE: due to problems, I removed the MULTISITE support again for now... Sorry about that! |
| 366 |
|
| 367 |
= 3.2 [03/18/2015] = |
| 368 |
* NEW: MULTISITE support added |
| 369 |
* CHANGE: various minor improvements |
| 370 |
|
| 371 |
= 3.1.4 [03/01/2015] = |
| 372 |
* NEW: italian language support [it_IT] added (thanks Fabio Marzocca!) |
| 373 |
* NEW: optimization timer |
| 374 |
* CHANGE: from now on InnoDB tables are skipped from optimization |
| 375 |
* CHANGE: various minor improvements |
| 376 |
* BUG FIX: removed strtolower while fetching database properties |
| 377 |
|
| 378 |
= 3.1.3 [02/21/2015] = |
| 379 |
* NEW: showing the icon in the admin menu is now configurable via the settings page |
| 380 |
|
| 381 |
= 3.1.2 [02/20/2015] = |
| 382 |
* BUG FIX: fixed the link to the settings page |
| 383 |
|
| 384 |
= 3.1.1 [02/20/2015] = |
| 385 |
* NEW: added plugin banners and icons |
| 386 |
* NEW: added a new admin menu item with icon ('Optimize Database') |
| 387 |
* CHANGE: moved the language files to the '/language' directory |
| 388 |
* CHANGE: moved the styles to the '/css' directory |
| 389 |
* CHANGE: credit removed from the front-end pages |
| 390 |
|
| 391 |
= 3.1 [01/29/2015] = |
| 392 |
* NEW: deletion of pingbacks and trackbacks (optional) |
| 393 |
* CHANGE: link to settings page in the main plugins page |
| 394 |
|
| 395 |
= 3.0 [12/28/2014] = |
| 396 |
* BUG FIX: tags only used in scheduled posts won't be deleted anymore (thanks Michael!) |
| 397 |
|
| 398 |
= 2.9 [10/22/2014] = |
| 399 |
* NEW: plugin has been fully localized |
| 400 |
* NEW: dutch language support [nl_NL] added |
| 401 |
* NEW: serbian language support [sr_RS] added |
| 402 |
|
| 403 |
= 2.8.3 [09/10/2014] = |
| 404 |
* CHANGE: using the WP jQuery libs now (not from googleapis anymore) |
| 405 |
* BUG FIX: check_admin_referer() fixed (gave a debug warning) |
| 406 |
|
| 407 |
= 2.8.2 [08/01/2014] = |
| 408 |
* BUG FIX: all problems with getting the table names should be fixed now! |
| 409 |
|
| 410 |
= 2.8.1 [07/31/2014] = |
| 411 |
* CHANGE: changed the 'edit_themes' capability back to 'administrator'-role |
| 412 |
* BUG FIX: no table names beside checkboxes (rewrote it, so it should work for every site now) |
| 413 |
|
| 414 |
= 2.8 [07/30/2014] = |
| 415 |
* CHANGE: 'administrator'-role changed to 'edit_themes'-capability |
| 416 |
* BUG FIX: no table names beside checkboxes |
| 417 |
|
| 418 |
= 2.7.9 [05/02/2014] = |
| 419 |
* BUG FIX: some minor bug fixes (thanks Mike!) |
| 420 |
|
| 421 |
= 2.7.8 [05/01/2014] = |
| 422 |
* CHANGE: replaced depreciated MySQL queries (from WP 3.9 / PHP 5.5) |
| 423 |
|
| 424 |
= 2.7.7 [02/16/2014] = |
| 425 |
* BUG FIX: made jQuery also https compatible |
| 426 |
|
| 427 |
= 2.7.6 [01/16/2014] = |
| 428 |
* BUG FIX: empty lines removed from output (gave problems with some RSS feeds) |
| 429 |
|
| 430 |
= 2.7.5 [12/13/2013] = |
| 431 |
* CHANGE: two queries optimized for better performance |
| 432 |
|
| 433 |
= 2.7.4 [12/11/2013] = |
| 434 |
* BUG FIX: added 'backticks' around the database name in a few queries |
| 435 |
|
| 436 |
= 2.7.3 [12/09/2013] = |
| 437 |
* BUG FIX: deleted some CR/LF's from the end of the plugin *sigh* |
| 438 |
|
| 439 |
= 2.7.2 [12/09/2013] = |
| 440 |
* BUG FIX: forgot to delete a debug item... oops! sorry! |
| 441 |
|
| 442 |
= 2.7.1 [12/09/2013] = |
| 443 |
* BUG FIX: query and depreciated item (mysql_list_tables) fixed |
| 444 |
|
| 445 |
= 2.7 [12/06/2013] = |
| 446 |
* NEW: deletion of expired transients (optional) |
| 447 |
|
| 448 |
= 2.6 [07/22/2013] = |
| 449 |
* NEW: deletion of unused tags (optional) |
| 450 |
|
| 451 |
= 2.5.1 [05/24/2013] = |
| 452 |
* BUG FIX: some short tags removed |
| 453 |
* CHANGE: schedule time is only relevant and therefore only shown for 'daily' and 'weekly' schedules |
| 454 |
* NEW: option to turn the '1-click' button in the admin bar on/off |
| 455 |
|
| 456 |
= 2.5 [05/24/2013] = |
| 457 |
* NEW: you can set a time (hour) for the scheduler to run (thanks to frekel) |
| 458 |
* NEW: '1-click run button' in the admin bar (thanks to JB ORSI) |
| 459 |
|
| 460 |
= 2.3.1 [05/03/2013] = |
| 461 |
* BUG FIX: fixed a problem with 'invalid header' (during installation) |
| 462 |
|
| 463 |
= 2.3 [04/26/2013] = |
| 464 |
* BUG FIX: fixed the 'Stealing Cron Schedules' issue |
| 465 |
|
| 466 |
= 2.2.9 [04/10/2013] = |
| 467 |
* BUG FIX: bug fix for the 'check all NON-WordPress tables' link |
| 468 |
|
| 469 |
= 2.2.8 [03/19/2013] = |
| 470 |
* BUG FIX: bug fix for deleting Post Orphans |
| 471 |
|
| 472 |
= 2.2.7 [03/18/2013] = |
| 473 |
* NEW: 'Orphan Post items' (like 'Auto Drafts') will be automatically deleted too now (thanks to: 0izys) |
| 474 |
|
| 475 |
= 2.2.6 [03/05/2013] = |
| 476 |
* Text change: 'logging on' changed to 'keep a log' (thanks to: Neil Parks) |
| 477 |
* NEW: number of orphans deleted now also shown in the log file |
| 478 |
* NEW: 'Go To Optimizer' button on settings page (thanks to: RonDsy) |
| 479 |
|
| 480 |
= 2.2.5 [02/20/2013] = |
| 481 |
* Bug fix: fixed an (innocent) PHP warning (in error.log) |
| 482 |
|
| 483 |
= 2.2.4 [02/12/2013] = |
| 484 |
* Bug fix: error corrected in readme.txt file |
| 485 |
|
| 486 |
= 2.2.3 [02/09/2013] = |
| 487 |
* Bug fix: fixed an (innocent) PHP warning (in error.log) |
| 488 |
|
| 489 |
= 2.2.2 [01/20/2013] = |
| 490 |
* Bug fix: deleting of postmeta orphans didn't work correctly |
| 491 |
|
| 492 |
= 2.2.1 [01/17/2013] = |
| 493 |
* Bug fix: fixed some debug warnings |
| 494 |
|
| 495 |
= 2.2 [01/11/2013] = |
| 496 |
* NEW: 'Orphan Postmeta items' will be automatically deleted |
| 497 |
* NEW: the possibility to exclude tables from Optimization (for instance for 'heavy traffic' tables) |
| 498 |
|
| 499 |
= 2.1 [01/04/2013] = |
| 500 |
* Bug fix: keeping a maximum number of revisions didn't work correctly |
| 501 |
|
| 502 |
= 2.0 [12/18/2012] = |
| 503 |
* NEW: Logging of the Optimizations (optional) |
| 504 |
* NEW: Scheduling Optimizations for Automatic Execution (optional) |
| 505 |
* Many other (technical and cosmetical) changes and improvements |
| 506 |
|
| 507 |
= 1.3.4 [12/14/2012] = |
| 508 |
* Changed the buttons for WP 3.5 |
| 509 |
|
| 510 |
= 1.3.3 [12/01/2012] = |
| 511 |
* Some layout changes |
| 512 |
|
| 513 |
= 1.3.2 [11/14/2012] = |
| 514 |
* Shows more information about the optimized tables + other minor changes |
| 515 |
|
| 516 |
= 1.3.1 [10/07/2012] = |
| 517 |
* Minor changes |
| 518 |
|
| 519 |
= 1.3 [10/06/2012] = |
| 520 |
* Extra button for starting optimization, shows savings (in bytes) now |
| 521 |
|
| 522 |
= 1.2 [10/03/2012] = |
| 523 |
* Major update: new options 'delete trash', 'delete spam', 'only optimize WordPress tables' |
| 524 |
|
| 525 |
= 1.1.9 [09/27/2012] = |
| 526 |
* Using a different method for retrieving database table names |
| 527 |
|
| 528 |
= 1.1.8 [09/08/2012] = |
| 529 |
* Another link fix |
| 530 |
|
| 531 |
= 1.1.7 [09/03/2012] = |
| 532 |
* Some textual and link fixes |
| 533 |
|
| 534 |
= 1.1.6 [09/01/2012] = |
| 535 |
* Fixed the link to the settings page |
| 536 |
|
| 537 |
= 1.1.3 [09/01/2012] = |
| 538 |
* Moved the 'Optimize DB Settings' item to Dashboard 'Settings' Menu and the 'Optimize Database' item to the Dashboard 'Tools' Menu. That makes more sense! |
| 539 |
|
| 540 |
= 1.1.2 [08/30/2012] = |
| 541 |
* Minor bug fix for the new option page |
| 542 |
|
| 543 |
= 1.1 [08/29/2012] = |
| 544 |
* Added: a new option page, in de plugins section, where you can define the maximum number of - most recent - revisions you want to keep per post or page |
| 545 |
|
| 546 |
= 1.0.5 [08/21/2012] = |
| 547 |
* Depreciated item ('has_cap') replaced, abandoned line of code removed |
| 548 |
|
| 549 |
= 1.0.4 [06/06/2012] = |
| 550 |
* Now also works with non short_open_tag's |
| 551 |
|
| 552 |
= 1.0.3 [12/15/2011] = |
| 553 |
* Some minor layout updates |
| 554 |
|
| 555 |
= 1.0.2 [12/02/2011] = |
| 556 |
* Some minor updates |
| 557 |
|
| 558 |
= 1.0.1 [11/24/2011] = |
| 559 |
* A few updates for the readme.txt file |
| 560 |
|
| 561 |
= 1.0 [11/22/2011] = |
| 562 |
* Initial release |
| 563 |
|
| 564 |
== Frequently Asked Questions == |
| 565 |
|
| 566 |
= How can I change the settings of this plugin? = |
| 567 |
* Change the settings in the WP Admin Panel » Settings » Optimize Database -or- via the WP Admin Panel » Optimize Database icon (depends on settings) |
| 568 |
|
| 569 |
= How do I run this plugin? = |
| 570 |
* Go to: Dashboard » Tools &araquo; Optimize Database. Then click the 'Start Optimization'-button -or- via the WP Admin Panel » Optimize Database icon (depends on settings) |
| 571 |
* Click the 'Optimize DB (1 click)' link in the Admin Bar (if enabled) |
| 572 |
|
| 573 |
= How do I run the Analyzer? = |
| 574 |
* Go to: Dashboard » Tools » Optimize Database and click the 'Analyze Database' button |
| 575 |
|
| 576 |
= Why do I see 'InnoDB table: skipped...'? = |
| 577 |
* That's because optimizing InnoDB tables is not really efficient, so change the table type to MyISAM to have them being optimized. |
| 578 |
* Update: if you want to optimize your InnoDB tables too, just check the 'Optimize InnoDB tables too' option on the settings page |
| 579 |
* IMPORTANT: optimizing InnoDB tables, might increase the size of the database! However, it will speed up the performance of the database |
| 580 |
|
| 581 |
= After I ran the plugin, I got "Total savings since the first run: -64 KB" = |
| 582 |
* Sometimes that happens when you optimize InnoDB tables (instead of MyISAM tables). |
| 583 |
Optimizing InnoDB tables works differently than MyISAM. |
| 584 |
InnoDB focuses on speed optimization and sometimes it means the database can grow a little. |
| 585 |
|
| 586 |
= I scheduled the optimization for 8pm but it runs at 6pm (my local time) = |
| 587 |
* The scheduler uses the local time of the web server which can differ from your own local time |
| 588 |
|
| 589 |
= The plugin is visible in Main Site Tools but not in my subsites = |
| 590 |
* Multisite Support |
| 591 |
– Install the plugin as Network Administrator (Network Admin » Plugins) |
| 592 |
– ‘Network Activate’ the plugin |
| 593 |
– You only can configure and run the plugin on the main network site, but it will optimize ALL the sub-sites too! |
| 594 |
|