X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeParserCache.php;h=716be3aab2b7fcc577687e928b56a016ee5ce8c9;hb=2c1c8238707f0a5d5e09f4fb0b8a252fdfa6577f;hp=da2d850e157d617f9161c5c5580e553e01058412;hpb=7fa619d361ea0c4af26315a8f8f95bf029e5cb9c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeParserCache.php b/maintenance/purgeParserCache.php index da2d850e15..716be3aab2 100644 --- a/maintenance/purgeParserCache.php +++ b/maintenance/purgeParserCache.php @@ -60,7 +60,7 @@ class PurgeParserCache extends Maintenance { } elseif ( $inputAge !== null ) { $date = wfTimestamp( TS_MW, time() + $wgParserCacheExpireTime - intval( $inputAge ) ); } else { - $this->error( "Must specify either --expiredate or --age", 1 ); + $this->fatalError( "Must specify either --expiredate or --age" ); return; } $this->usleep = 1e3 * $this->getOption( 'msleep', 0 ); @@ -72,7 +72,7 @@ class PurgeParserCache extends Maintenance { $pc = MediaWikiServices::getInstance()->getParserCache()->getCacheStorage(); $success = $pc->deleteObjectsExpiringBefore( $date, [ $this, 'showProgressAndWait' ] ); if ( !$success ) { - $this->error( "\nCannot purge this kind of parser cache.", 1 ); + $this->fatalError( "\nCannot purge this kind of parser cache." ); } $this->showProgressAndWait( 100 ); $this->output( "\nDone\n" );