Table of Contents
History Cleanup Plugin
Compatible with DokuWiki
- 2022-07-31 "Igor" yes
- 2020-07-29 "Hogfather" yes
- 2018-04-22 "Greebo" yes
- 2017-02-19 "Frusterick Manners" yes
Download and Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
- Version upped (2023-01-31 23:50)
- added admin menu svg (2023-01-31 09:34)
- language cleanup (2023-01-31 09:29)
- handle moved pages correctly. fixes #1 (2023-01-31 09:18)
- accept any IP in changelog. fixes #2 (2023-01-31 09:14)
- do not directly use doku.php. fixes #5 (2023-01-31 09:10)
- fix a few minor errors, including #6 (2023-01-31 09:05)
- formatting and php style cleanup (2023-01-31 08:57)
Access the Admin menu and choose the History Cleanup plugin.
Cleanup on last changes
The plugin checks all pages from the recent changes page.
In configuration manager, you can also setup the plugin to run automatically once a day.
Cleanup on namespace
The plugin checks all pages from a namespace and it's sub-namespaces. If no namespace is given it checks all pages.
Page cleanup process
- The plugin checks for all old versions of a page.
- it checks from old to new version.
- it check always two versions that are back-to-back each other.
- if the authors are the same and the time span between the versions is lesser then 1 hour the old version will be deleted.
Here a small example on the DokuWiki welcome page history:
2008/08/16 19:24 DokuWiki – (external edit) (current) 2008/08/10 15:34 DokuWiki – re-added doku> interwikilink again, because this page gets included in the install tarball andi 2008/08/10 13:57 DokuWiki – 188.8.131.52 2008/08/10 13:57 DokuWiki – 184.108.40.206 2008/08/10 07:10 DokuWiki – 220.127.116.11 2008/08/10 07:10 DokuWiki – 18.104.22.168 2008/08/09 13:57 DokuWiki – fixed links, page seems clean 22.214.171.124
2008/08/16 19:24 DokuWiki – (external edit) (current) 2008/08/10 15:34 DokuWiki – re-added doku> interwikilink again, because this page gets included in the install tarball andi 2008/08/10 13:57 DokuWiki – 126.96.36.199 2008/08/10 07:10 DokuWiki – 188.8.131.52 2008/08/09 13:57 DokuWiki – fixed links, page seems clean 184.108.40.206
TODO and suggestions
- Add a function to automatic delete old history data that is older then a specific value in days (like automatic_cleanup_script)
- Add a function to automatic cleanup the playground (like keeping_playground_clean)
- I miss some flexibility. Instead of merging history entries by the same user within 1 hour, I'd like to keep 1 history entry per month or per year, regardless of who edited it last. A draft new version is available in the forum: http://forum.dokuwiki.org/post/33457 — quadra 2012/07/13 13:52
- Selective removal of versions would be nice
plugin/clearhistory.txt · Last modified: 2023-01-31 23:50 by andi