Optimize Database after Deleting Revisions changelog

By NerdPress, on WordPress.org since 2011. 60,000+ active installs.

Browse code

143 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.

  1. 5.3.0
    • Fix issue where deactivation and uninstallation routines would not run as intended.
    • oEmbed caches are no longer fully embedded in detail reports, but instead show stored HTML to save resources and improve security.
    • Fix fatal error on very old PHP 5.x. (Note, future updates will require newer PHP versions!)
    • Fix deprecation warning on PHP 8.3.
    • Tested up to 6.8.
    Source Diff vs 5.2.2
  2. 5.2.2
    • Some links looked like buttons. They’re now links.
    • Fix sanitization for databases and table prefixes with capital letters.
    • Removed unnecessary FROM clause in the table lookup query.
    Source Diff vs 5.2.1
  3. 5.2.1
    • Add missing nonce on “Optimize DB (1 click)” admin bar link.
    • Remove “Optimize” buttons from Log page.
    • Fix PHP 8 Deprecation Notices.
    Source Diff vs 5.2
  4. 5.2
    • NerdPress has adopted Optimize Database After Deleting Revisions! Read the announcement here.
    • Security improvement: Additional CSRF hardening.
    • Security improvement: Add capability checks.
    • Security improvement: Improve sanitization of database queries.
    • Fix: PHP 8 Deprecation Notice.
    Source Diff vs 5.1.1
  5. 5.1.1
    • Security improvement: Hardens links to prevent CSRF.
    • Security fix: Implements proper preparation of queries.
    Source Diff vs 5.1
  6. 5.1
    • BUG FIX: Fixed the CSRF security issue
    Source Diff vs 5.0.10
  7. 5.0.10
    • BUG FIX: set_time_limit fixed
    Source Diff vs 5.0.9
  8. 5.0.9
    • BUG FIX: Syntax error corrected
    Source Diff vs 5.0.8
  9. 5.0.8
    • BUG FIX: Some performance inprovements (2nd try)
    Source Diff vs 5.0.7
  10. 5.0.7
    • BUG FIX: Changed back to v5.0.4
    Source Diff vs 5.0.6
  11. 5.0.6
    • BUG FIX: Scheduler fixed
    Source Diff vs 5.0.5
  12. 5.0.5
    • BUG FIX: Some performance inprovements
    Source Diff vs 5.0.4
  13. 5.0.4
    • BUG FIX: Field names INFORMATION_SCHEMA corrected
    Source Diff vs 5.0.3
  14. 5.0.3
    • BUG FIX: Creating log table if not exists
    Source Diff vs 5.0.2
  15. 5.0.2
    • BUG FIX: Deletion of orphaned term relationships deactivated
    Source Diff vs 5.0.1
  16. 5.0.1
    • BUG FIX: Deletion of Duplicated Postmeta entries deactivated
    Source Diff vs 5.0
  17. 5.0
    • New: Deletion of Duplicated Postmeta entries
    Source Diff vs 4.9.1
  18. 4.9.1
    • BUG FIX: Fixed a bug for deleting orphans
    Source Diff vs 4.9
  19. 4.9
    • NEW: Deletion of orphaned term relationships
    Source Diff vs 4.8.8
  20. 4.8.8
    • BUG FIX: Fixed an (innocent) warning (while cleaning)
    Source Diff vs 4.8.7
  21. 4.8.7
    • BUG FIX: Bug fix for ‘Delete revisions older than’
    Source Diff vs 4.8.6
  22. 4.8.6
    • BUG FIX: Some bug fixes + other minor changes
    Source Diff vs 4.8.5
  23. 4.8.5
    • BUG FIX: Logging bug fixed
    Source Diff vs 4.8.4
  24. 4.8.4
    • CHANGE: Improved performance
    Source Diff vs 4.8.3
  25. 4.8.3
    • BUG FIX: Scheduler bug fixed
    Source Diff vs 4.8.2
  26. 4.8.2
    • CHANGE: Rewrote the deletion of (expired) transients
    Source Diff vs 4.8.1
  27. 4.8.1
    • BUG FIX: Scheduler bug fixed
    Source Diff vs 4.8.0
  28. 4.8.0
    • NEW: New analyze / optimize options (summary or detail)
    Source Diff vs 4.7.4
  29. 4.7.4
    • CHANGE: ‘set_time_limit’ warning suppressed
    • CHANGE: Some lay-out fixes
    • NEW: Added a ‘help’-button on the settings page
    Source Diff vs 4.7.3
  30. 4.7.3
    • CHANGE: The deletion of transients has been fully rewritten and is many times faster now!
    • CHANGE: Increased the time_limit
    • CHANGE: German translations have been updated
    Source Diff vs 4.7.2
  31. 4.7.2
    • BUG FIX: Fixed a MySQL query
    Source Diff vs 4.7.1
  32. 4.7.1
    • BUG FIX: Fixed an ‘undefined variable’ notice
    Source Diff vs 4.6.3
  33. 4.6.3
    • CHANGE: Removed the MyISAM engine for the log table (now it uses the default-storage-engine of the database)
    Source Diff vs 4.6.2
  34. 4.6.2
    • BUG FIX: Fixed a javascript bug for the ‘Clear Log’ confirmation
    • NEW: PayPal donation button
    Source Diff vs 4.6.1
  35. 4.6.1
    • BUG FIX: Fixed the WordPress Admin Menu dropdowns on ‘View Log’ page
    Source Diff vs 4.6
  36. 4.6
    • NEW: Logging system has been totally rewritten (from now it will store the logs in the database)
    • NEW: Export the log to a CSV file
    Source Diff vs 4.5.2
  37. 4.5.2
    • NEW: Clear OEMBED cache
    • BUG FIX: Translation corrected (‘Next scheduled run: 0 days, 9 hours, 35 minutes and 27 seconds’)
    Source Diff vs 4.5.1
  38. 4.5.1
    • NEW: Added last run seconds
    • NEW: French translation added
    • BUG FIX: Fixed a typo (‘DELETEED’)
    Source Diff vs 4.5
  39. 4.5
    • CHANGE: Revamped and improved the scheduler code
    Source Diff vs 4.4.3
  40. 4.4.3
    • BUG FIX: Fixed some scheduler time issues
    Source Diff vs 4.4.2
  41. 4.4.2
    • NEW: Skip standard posttype ‘oembed_cache’
    • BUG FIX: Hide the settings link (plugin page) for multi site sites (except for the main network site)
    Source Diff vs 4.4.1
  42. 4.4.1
    • BUG FIX: Bug in counting excluded tables fixed
    Source Diff vs 4.4
  43. 4.4
    • NEW: New options to delete revisions of posts, pages and / or specific custom post types
    Source Diff vs 4.3.2
  44. 4.3.2
    • CHANGE: Fixed some (innocent) PHP warnings
    Source Diff vs 4.3.1
  45. 4.3.1
    • NEW: New option for deleting ALL transients (not the expired ones only)
    Source Diff vs 4.3
  46. 4.3
    • NEW: New setting added: Delete revisions of (POSTS and PAGES, POSTS only or PAGES only)
    • CHANGE: Some code clean-up and minor changes
    Source Diff vs 4.2.3
  47. 4.2.3
    • CHANGE: Extra save button added to the settings page
    Source Diff vs 4.2.2
  48. 4.2.2
    • NEW: Indonesian (id_ID) translation added
    Source Diff vs 4.2.1
  49. 4.2.1
    • CHANGE: Fixed some (innocent) warnings
    Source Diff vs 4.2.0
  50. 4.2.0
    • NEW: Added a ‘monthly’ schedule to the scheduler
    Source Diff vs 4.1.10
  51. 4.1.10
    • BUG FIX: Bug fix for 4.1.9
    Source Diff vs 4.1.9
  52. 4.1.9
    • CHANGE: ‘Running indicator’ added
    Source Diff vs 4.1.8
  53. 4.1.8
    • CHANGE: Reverted back to 4.1.6 due to some problems. Sorry!
    Source Diff vs 4.1.7
  54. 4.1.7
    • CHANGE: Orphaned media items will be deleted too now
    Source Diff vs 4.1.6
  55. 4.1.6
    • NEW: Belarus (be_BY) translation added (thanks Natasha!)
    Source Diff vs 4.1.5
  56. 4.1.5
    • NEW: Turkish (tr_TR) translation added (thanks Keremcan Buyuktaskin!)
    Source Diff vs 4.1.4
  57. 4.1.4
    • NEW: Custom field ‘keep_revisions’, for excluding the deletion of revisions for specific posts/pages
    • NEW: Run the optimization from a Unix crontab (if possible)
    Source Diff vs 4.1.3
  58. 4.1.3
    • BUG FIX: Saving settings didn’t work well for multi-sites
    Source Diff vs 4.1.2
  59. 4.1.2
    • NEW: Brasilian Portuguese (po_BR) translation added
    • NEW: Network: True added to the plugin header
    Source Diff vs 4.1.1
  60. 4.1.1
    • CHANGE: Use can use the ‘Delete revisions older than’ AND ‘Keep max number of revisions’ options at the same time!
    Source Diff vs 4.1
  61. 4.1
    • NEW: New option: delete revisions older than…
    • NEW: Persian translation (fa_IR) added
    • CHANGE: For multi-site installations you only can use the plugin on the Main site, but all other sites will be cleaned too.
    • CHANGE: Some minor updates / changes
    Source Diff vs 4.0.3
  62. 4.0.3
    • BUG FIX: Bug fix for Cron Schedules
    • BUG FIX: Un-installation generated an error
    • CHANGE: Some minor updates / changes
    Source Diff vs 4.0.2
  63. 4.0.2
    • BUG FIX: Settings weren’t saved correctly for MultiSites
    Source Diff vs 4.0.1
  64. 4.0.1
    • NEW: New option: optimize InnoDB tables too
    • BUG FIX: Localization fixed for extra cron schedules
    • BUG FIX: De-activation issue on update fixed
    Source Diff vs 4.0
  65. 4.0
    • NEW: Total rewrite of the code (OO code)
    • CHANGE: Many changes and bug fixes
    Source Diff vs 3.5.1
  66. 3.5.1
    • BUG FIX: Views are skipped from the optimization
    Source Diff vs 3.5
  67. 3.5
    • CHANGE: Stylesheet is only loaded on required admin pages
    Source Diff vs 3.4.9
  68. 3.4.9
    • BUG FIX: Bug fixed for deleting unused tags
    Source Diff vs 3.4.8
  69. 3.4.8
    • BUG FIX: Bug fixed for deleting transients
    Source Diff vs 3.4.7
  70. 3.4.7
    • BUG FIX: Transients are now deleted using the delete_transient() / delete_site_transient() functions
    Source Diff vs 3.4.6
  71. 3.4.6
    • NEW: Danish translation (da_DK) added
    Source Diff vs 3.4.5
  72. 3.4.5
    • NEW: Russian translation (ru_RU) added
    Source Diff vs 3.4.4
  73. 3.4.4
    • NEW: German translation (de_DE) added
    Source Diff vs 3.4.2
  74. 3.4.2
    • BUG FIX: fixed a bug (options didn’t get saved in old multisite installs)
    Source Diff vs 3.4.1
  75. 3.4.1
    • BUG FIX: fixed a bug for the excluded tables (didn’t work anymore)
    Source Diff vs 3.4
  76. 3.4
    • NEW: Ukrainian translation (uk_UA) added
    • CHANGE: updates for Dutch and Italian translations
    • CHANGE: a new, fresh look!
    • CHANGE: a better way to show the EXCLUDED tables on the settings page
    Source Diff vs 3.3.1
  77. 3.3.1
    • BUG FIX: fixed a bug with the scheduler (it didn’t clean everything)
    Source Diff vs 3.3
  78. 3.3
    • NEW: MULTISITE support added (second try ;-))
    • CHANGE: various minor improvements
    • BUG FIX: sub-sites are accessible again (in the admin panel)
    Source Diff vs 3.2.1
  79. 3.2.1
    • CHANGE: due to problems, I removed the MULTISITE support again for now… Sorry about that!
    Source Diff vs 3.2
  80. 3.2
    • NEW: MULTISITE support added
    • CHANGE: various minor improvements
    Source Diff vs 3.1.4
  81. 3.1.4
    • NEW: italian language support [it_IT] added (thanks Fabio Marzocca!)
    • NEW: optimization timer
    • CHANGE: from now on InnoDB tables are skipped from optimization
    • CHANGE: various minor improvements
    • BUG FIX: removed strtolower while fetching database properties
    Source Diff vs 3.1.3
  82. 3.1.3
    • NEW: showing the icon in the admin menu is now configurable via the settings page
    Source Diff vs 3.1.2
  83. 3.1.2
    • BUG FIX: fixed the link to the settings page
    Source Diff vs 3.1.1
  84. 3.1.1
    • NEW: added plugin banners and icons
    • NEW: added a new admin menu item with icon (‘Optimize Database’)
    • CHANGE: moved the language files to the ‘/language’ directory
    • CHANGE: moved the styles to the ‘/css’ directory
    • CHANGE: credit removed from the front-end pages
    Source Diff vs 3.1
  85. 3.1
    • NEW: deletion of pingbacks and trackbacks (optional)
    • CHANGE: link to settings page in the main plugins page
    Source Diff vs 3.0
  86. 3.0
    • BUG FIX: tags only used in scheduled posts won’t be deleted anymore (thanks Michael!)
    Source Diff vs 2.9
  87. 2.9
    • NEW: plugin has been fully localized
    • NEW: dutch language support [nl_NL] added
    • NEW: serbian language support [sr_RS] added
    Source Diff vs 2.8.3
  88. 2.8.3
    • CHANGE: using the WP jQuery libs now (not from googleapis anymore)
    • BUG FIX: check_admin_referer() fixed (gave a debug warning)
    Source Diff vs 2.8.2
  89. 2.8.2
    • BUG FIX: all problems with getting the table names should be fixed now!
    Source Diff vs 2.8.1
  90. 2.8.1
    • CHANGE: changed the ‘edit_themes’ capability back to ‘administrator’-role
    • BUG FIX: no table names beside checkboxes (rewrote it, so it should work for every site now)
    Source Diff vs 2.8
  91. 2.8
    • CHANGE: ‘administrator’-role changed to ‘edit_themes’-capability
    • BUG FIX: no table names beside checkboxes
    Source Diff vs 2.7.9
  92. 2.7.9
    • BUG FIX: some minor bug fixes (thanks Mike!)
    Source Diff vs 2.7.8
  93. 2.7.8
    • CHANGE: replaced depreciated MySQL queries (from WP 3.9 / PHP 5.5)
    Source Diff vs 2.7.7
  94. 2.7.7
    • BUG FIX: made jQuery also https compatible
    Source Diff vs 2.7.6
  95. 2.7.6
    • BUG FIX: empty lines removed from output (gave problems with some RSS feeds)
    Source Diff vs 2.7.5
  96. 2.7.5
    • CHANGE: two queries optimized for better performance
    Source Diff vs 2.7.4
  97. 2.7.4
    • BUG FIX: added ‘backticks’ around the database name in a few queries
    Source Diff vs 2.7.3
  98. 2.7.3
    • BUG FIX: deleted some CR/LF’s from the end of the plugin sigh
    Source Diff vs 2.7.2
  99. 2.7.2
    • BUG FIX: forgot to delete a debug item… oops! sorry!
    Source Diff vs 2.7.1
  100. 2.7.1
    • BUG FIX: query and depreciated item (mysql_list_tables) fixed
    Source Diff vs 2.7
  101. 2.7
    • NEW: deletion of expired transients (optional)
    Source Diff vs 2.6
  102. 2.6
    • NEW: deletion of unused tags (optional)
    Source Diff vs 2.5.1
  103. 2.5.1
    • BUG FIX: some short tags removed
    • CHANGE: schedule time is only relevant and therefore only shown for ‘daily’ and ‘weekly’ schedules
    • NEW: option to turn the ‘1-click’ button in the admin bar on/off
    Source Diff vs 2.5
  104. 2.5
    • NEW: you can set a time (hour) for the scheduler to run (thanks to frekel)
    • NEW: ‘1-click run button’ in the admin bar (thanks to JB ORSI)
    Source Diff vs 2.4.2
  105. 2.4.2

    No notes for this release in the current readme.

    Source Diff vs 2.4.1
  106. 2.4.1

    No notes for this release in the current readme.

    Source Diff vs 2.4
  107. 2.4

    No notes for this release in the current readme.

    Source Diff vs 2.3.1
  108. 2.3.1
    • BUG FIX: fixed a problem with ‘invalid header’ (during installation)
    Source Diff vs 2.3
  109. 2.3
    • BUG FIX: fixed the ‘Stealing Cron Schedules’ issue
    Source Diff vs 2.2.9
  110. 2.2.9
    • BUG FIX: bug fix for the ‘check all NON-WordPress tables’ link
    Source Diff vs 2.2.8
  111. 2.2.8
    • BUG FIX: bug fix for deleting Post Orphans
    Source Diff vs 2.2.7
  112. 2.2.7
    • NEW: ‘Orphan Post items’ (like ‘Auto Drafts’) will be automatically deleted too now (thanks to: 0izys)
    Source Diff vs 2.2.6
  113. 2.2.6
    • Text change: ‘logging on’ changed to ‘keep a log’ (thanks to: Neil Parks)
    • NEW: number of orphans deleted now also shown in the log file
    • NEW: ‘Go To Optimizer’ button on settings page (thanks to: RonDsy)
    Source Diff vs 2.2.5
  114. 2.2.5
    • Bug fix: fixed an (innocent) PHP warning (in error.log)
    Source Diff vs 2.2.4
  115. 2.2.4
    • Bug fix: error corrected in readme.txt file
    Source Diff vs 2.2.3
  116. 2.2.3
    • Bug fix: fixed an (innocent) PHP warning (in error.log)
    Source Diff vs 2.2.2
  117. 2.2.2
    • Bug fix: deleting of postmeta orphans didn’t work correctly
    Source Diff vs 2.2.1
  118. 2.2.1
    • Bug fix: fixed some debug warnings
    Source Diff vs 2.2
  119. 2.2
    • NEW: ‘Orphan Postmeta items’ will be automatically deleted
    • NEW: the possibility to exclude tables from Optimization (for instance for ‘heavy traffic’ tables)
    Source Diff vs 2.1
  120. 2.1
    • Bug fix: keeping a maximum number of revisions didn’t work correctly
    Source Diff vs 2.0
  121. 2.0
    • NEW: Logging of the Optimizations (optional)
    • NEW: Scheduling Optimizations for Automatic Execution (optional)
    • Many other (technical and cosmetical) changes and improvements
    Source Diff vs 1.3.4
  122. 1.3.4
    • Changed the buttons for WP 3.5
    Source Diff vs 1.3.3
  123. 1.3.3
    • Some layout changes
    Source Diff vs 1.3.2
  124. 1.3.2
    • Shows more information about the optimized tables + other minor changes
    Source Diff vs 1.3.1
  125. 1.3.1
    • Minor changes
    Source Diff vs 1.3
  126. 1.3
    • Extra button for starting optimization, shows savings (in bytes) now
    Source Diff vs 1.2
  127. 1.2
    • Major update: new options ‘delete trash’, ‘delete spam’, ‘only optimize WordPress tables’
    Source Diff vs 1.1.9
  128. 1.1.9
    • Using a different method for retrieving database table names
    Source Diff vs 1.1.8
  129. 1.1.8
    • Another link fix
    Source Diff vs 1.1.7
  130. 1.1.7
    • Some textual and link fixes
    Source Diff vs 1.1.6
  131. 1.1.6
    • Fixed the link to the settings page
    Source Diff vs 1.1.5
  132. 1.1.5

    No notes for this release in the current readme.

    Source Diff vs 1.1.4
  133. 1.1.4

    No notes for this release in the current readme.

    Source Diff vs 1.1.3
  134. 1.1.3
    • Moved the ‘Optimize DB Settings’ item to Dashboard ‘Settings’ Menu and the ‘Optimize Database’ item to the Dashboard ‘Tools’ Menu. That makes more sense!
    Source Diff vs 1.1.2
  135. 1.1.2
    • Minor bug fix for the new option page
    Source Diff vs 1.1.1
  136. 1.1.1

    No notes for this release in the current readme.

    Source Diff vs 1.1
  137. 1.1
    • 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
    Source Diff vs 1.0.5
  138. 1.0.5
    • Depreciated item (‘has_cap’) replaced, abandoned line of code removed
    Source Diff vs 1.0.4
  139. 1.0.4
    • Now also works with non short_open_tag’s
    Source Diff vs 1.0.3
  140. 1.0.3
    • Some minor layout updates
    Source Diff vs 1.0.2
  141. 1.0.2
    • Some minor updates
    Source Diff vs 1.0.1
  142. 1.0.1
    • A few updates for the readme.txt file
    Source Diff vs 1.0
  143. 1.0
    • Initial release
    Source