Jump to content

Topic on Extension talk:Nuke/Archive 2

Allow nuke to delete older pages

3
Guiwald (talkcontribs)

Hello, I would like to use Nuke to delete old pages. How can I modify it to be able to delete older pages?

G.Hagedorn (talkcontribs)

If you have access to LocalSettings, you can change the duration in which recentchanges are recorded to an arbitrary timespan. We repeatedly set it to over a year, then run the rebuildrecentchanges php script, and the desired articles were available to Nuke.

Diomidis Spinellis (talkcontribs)

Specifically in LocalSettings.php set

// Two years
$wgRCMaxAge = 2 * 365 * 24 * 60 * 60;

and run

php maintenance/rebuildrecentchanges.php

Then reset wgRCMaxAge and rerun rebuildrecentchanges.php.

To avoid having a list of thousands of deleted pages you might want to set wgRCMaxAge to 0, run maintenance/rebuildrecentchanges.php and then remove the setting. The list of recent pages will then start from empty.

Reply to "Allow nuke to delete older pages"