Extension:DeleteHistory

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
DeleteHistory

Release status: stable

Implementation Special page
Description Allows to delete page history and to optimize MySQL/MariaDB database to win disk space
Author(s) Pierre Mavro (Pmavrotalk)
Latest version 0.8 (2013-12-22)
MediaWiki 1.14+
Database changes No
License GNU General Public License 2.0
Download Snapshot
Added rights

DeleteHistory

Translate the DeleteHistory extension if possible

Check usage and version matrix; code metrics

This extension:

  • Deletes old unwanted information in history
  • Frees up to 90% disk space in the MediaWiki database

Prerequisite[edit | edit source]

  • Be sure you've got php5-cli installed. If you're under Debian like OS :
aptitude install php5-cli

Installation[edit | edit source]

Method 1[edit | edit source]

Download the latest snapshot version and uncompress it in your extensions directory (ex. /var/www/mediawiki/extensions) :

wget -O DeleteHistory.tgz "http://git.deimos.fr/?p=mediawiki_DeleteHistory.git;a=snapshot;h=HEAD;sf=tgz"
mkdir DeleteHistory
tar -xzf DeleteHistory.tgz --strip 1 -C DeleteHistory
rm -f DeleteHistory.tgz

Method 2[edit | edit source]

Clone it via Git :

git clone http://git.deimos.fr/git/mediawiki_DeleteHistory.git DeleteHistory

Configuration[edit | edit source]

# DeleteHistory
$wgGroupPermissions['sysop']['DeleteHistory'] = true;
include('extensions/DeleteHistory/DeleteHistory.php');
  • That's all, now you can go in Special Pages and try the DeleteHistory extension. If you don't see anything new, it's because you don't have the admin privileges.

User rights[edit | edit source]

If you don't see anything new, it's because you don't have the admin privileges.

Usage[edit | edit source]

Go into Special Page to delete history.

Changelog[edit | edit source]

v0.8
  • Adding Brazilian Portuguese language
  • Fix minor bug on reporting array
v0.7
  • Compatible with MediaWiki 1.21
v0.6
  • Adding German language
v0.5
  • Adding Engine and Collation tables informations when requesting optimization. It helps to understand the result of it.
v0.4.1
  • Fix some vulnerability
v0.4
  • Compatible with MediaWiki 1.18
v0.3
  • Show in KB or MB in the database space won when an optimize runs
  • Changed shown order (Result,Optimisation Status,Logs)
  • Added arrays style to results
v0.2
  • Compatible with MediaWiki 1.16
v0.1
  • First release