summaryrefslogtreecommitdiff
path: root/maintenance/purgeParserCache.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:12:12 -0400
commitc9aa36da061816dee256a979c2ff8d2ee41824d9 (patch)
tree29f7002b80ee984b488bd047dbbd80b36bf892e9 /maintenance/purgeParserCache.php
parentb4274e0e33eafb5e9ead9d949ebf031a9fb8363b (diff)
parentd1ba966140d7a60cd5ae4e8667ceb27c1a138592 (diff)
Merge branch 'archwiki'
# Conflicts: # skins/ArchLinux.php # skins/ArchLinux/archlogo.gif
Diffstat (limited to 'maintenance/purgeParserCache.php')
-rw-r--r--maintenance/purgeParserCache.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/purgeParserCache.php b/maintenance/purgeParserCache.php
index ca2a0414..9970c1fd 100644
--- a/maintenance/purgeParserCache.php
+++ b/maintenance/purgeParserCache.php
@@ -37,7 +37,8 @@ class PurgeParserCache extends Maintenance {
$this->addDescription( "Remove old objects from the parser cache. " .
"This only works when the parser cache is in an SQL database." );
$this->addOption( 'expiredate', 'Delete objects expiring before this date.', false, true );
- $this->addOption( 'age',
+ $this->addOption(
+ 'age',
'Delete objects created more than this many seconds ago, assuming $wgParserCacheExpireTime ' .
'has been consistent.',
false, true );
@@ -77,8 +78,8 @@ class PurgeParserCache extends Maintenance {
$stars = floor( $percent / 2 );
$this->output( '[' . str_repeat( '*', $stars ) . str_repeat( '.', 50 - $stars ) . '] ' .
"$percentString%\r" );
-
}
}
+
$maintClass = 'PurgeParserCache';
require_once RUN_MAINTENANCE_IF_MAIN;