$shared = $this->hasOption( 'doshared' );
$updates = array( 'core', 'extensions', 'stats' );
- if( !$this->hasOption('nopurge') ) {
- $updates[] = 'purge';
- }
$updater = DatabaseUpdater::newForDb( $db, $shared, $this );
$updater->doUpdates( $updates );
}
}
+ if( !$this->hasOption('nopurge') ) {
+ $updater->purgeCache();
+ }
+
$this->output( "\nDone.\n" );
}