DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:clearhistory

This is an old revision of the document!


History Cleanup Plugin

Compatible with DokuWiki

2008-05-05+, rincewind, angua, adora belle

plugin Removes subsequent edits by the same user from old revisions and history entries

Last updated on
2010-01-23
Provides
Admin, Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Tagged with maintenance, revisions, spam, users

Download and Installation

A CosmoCode Plugin

Download and install the plugin using the Plugin Manager using the following URL. Refer to Plugins on how to install plugins manually.

Changes

Usage

Access the Admin menu and choose the History Cleanup plugin.

Cleanup on last changes

The plugin checks all pages from the recent changes page.

Configuration

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.

Example

Here a small example on the DokuWiki welcome page history:

History before:

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 – 87.206.233.64
2008/08/10 13:57 DokuWiki – 87.206.233.64
2008/08/10 07:10 DokuWiki – 93.135.108.77
2008/08/10 07:10 DokuWiki – 93.135.108.77
2008/08/09 13:57 DokuWiki – fixed links, page seems clean 82.224.163.148

History after:

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 – 87.206.233.64
2008/08/10 07:10 DokuWiki – 93.135.108.77
2008/08/09 13:57 DokuWiki – fixed links, page seems clean 82.224.163.148

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/33457quadra 2012/07/13 13:52
plugin/clearhistory.1354574438.txt.gz · Last modified: 2012-12-03 23:40 by Andreas

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki