Change-Id: I791f220b49e3e1c7d6df9ccab7d70ff8a0031ef1
- * Purge the objectcache table
+ * Purge various database caches
*/
public function purgeCache() {
global $wgLocalisationCacheConf;
*/
public function purgeCache() {
global $wgLocalisationCacheConf;
- # We can't guarantee that the user will be able to use TRUNCATE,
- # but we know that DELETE is available to us
+ // We can't guarantee that the user will be able to use TRUNCATE,
+ // but we know that DELETE is available to us
$this->output( "Purging caches..." );
$this->output( "Purging caches..." );
$this->db->delete( 'objectcache', '*', __METHOD__ );
$this->db->delete( 'objectcache', '*', __METHOD__ );
if ( $wgLocalisationCacheConf['manualRecache'] ) {
$this->rebuildLocalisationCache();
}
if ( $wgLocalisationCacheConf['manualRecache'] ) {
$this->rebuildLocalisationCache();
}
+
+ // ResourceLoader: Message cache
$blobStore = new MessageBlobStore();
$blobStore->clear();
$blobStore = new MessageBlobStore();
$blobStore->clear();
+
+ // ResourceLoader: File-dependency cache
$this->db->delete( 'module_deps', '*', __METHOD__ );
$this->output( "done.\n" );
}
$this->db->delete( 'module_deps', '*', __METHOD__ );
$this->output( "done.\n" );
}