Extension:SpecialDeleteOldRevisions2
From MediaWiki.org
Main version broken for SVN (Call to undefined function wfElement() etc.) (Fixed for SVN 63760: version 1.4 fixed)
|
Release status: stable |
|
|---|---|
| Implementation | Special page |
| Description | Will permanently delete old revisions of all or specified articles.) |
| Author(s) | http://jehy.ru/index.en.html (JehyTalk) |
| Last Version | 1.4 (2008-11-12) |
| MediaWiki | 1.13.0+ |
| License | GPL |
| Download | version 1.4 (backup link) (Fixed for SVN 63760: version 1.4 fixed) readme |
|
check usage (experimental) |
|
Contents |
[edit] Disclaimer
This extension is a fixed version of abandoned extension Extension:SpecialDeleteOldRevisions. Since it has not been updated for 1.5 years, I took responsibility, fixed all known bugs and published it here. I will continue to monitor and update it in the future. This extension does not work on mediawiki extensions earlier than 1.12. For earlier versions, use the original extension.
Please, credit Marc Noirot and Gunter Schmidt for the original idea. I really hope that they will be back...
All the text below is taken from Extension:SpecialDeleteOldRevisions. Please, if you have any questions - look there first.
[edit] What is this extension good for?
This extension deletes permanently all old revisions of some or all article(s), meaning only the current version will remain in the system. This function is useful for systems, where you do not need a history of the articles and want to reduce the size of the database.
What it does not do: You can not choose a certain revision (check Oversight for that functionality).
This extension adds a special page accessible to sysops only. Note: Recent changes records are not cleared! If you want to delete them, just truncate table "recentchanges"
[edit] Usage
First please make a backup of your database for safety reasons. You need to be logged in as sysop. Under special pages you will find the Delete old revision page in the sysop section.
- page: specify the pages to be deleted, % for all pages.
- namespace: specify the namespace for the articles, check all for all namespaces.
- up to date: specify the date of the revisions. All revision before and on that date will be deleted.
- Delete archived articles: If this is checked all already deleted articles will be permanently deleted.
This extension will clear the tables: archive, page, revision, text, recent changes and logging.
If you for example want to delete all unused MediaWiki-Texts (which have been deleted after upgrading to 1.8) to shrink the database significantly, choose
- namespace
MediaWiki - article name
%
When using MySQL you need to optimize the tables afterwards with phpMyAdmin or manually.
[edit] Installation
- Extract the archive into /extensions directory
- Add the following lines near the end in the LocalSettings.php file:
// Extension DeleteOldRevisions $wgGroupPermissions['sysop']['DeleteOldRevisions'] = true; require_once( $IP.'/extensions/SpecialDeleteOldRevisions2/SpecialDeleteOldRevisions2.php');
You can now access the Special:DeleteOldRevisions page as a sysop.
[edit] Optimizing tables
After the revisions have been deleted, optimize all tables by checking them all in phpMyAdmin and then in the "With selected:" drop down at the bottom of the page, choose "optimize".
