installer: Clear module_deps cache in updater
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 10 Apr 2015 19:35:13 +0000 (20:35 +0100)
committerKunal Mehta <legoktm@gmail.com>
Sat, 11 Apr 2015 23:32:57 +0000 (16:32 -0700)
Unless --nopurge is set in update.php, clear module_deps cache
tables.

We already clear the objectcache via purgeCache(), and
msg_resource and msg_resource_links via MessageBlobStore::clear().

The module_deps table should be included as well.

Bug: T37472
Change-Id: I7cb63bb39a62b7f5be3855d022a8c76e175e95b5

RELEASE-NOTES-1.25
includes/installer/DatabaseUpdater.php

index 5f0b8aa..aad2976 100644 (file)
@@ -184,6 +184,7 @@ production.
   HTML validation.
 * $wgUseTidy is now set when parserTests are run with the tidy option to match
   output on wiki.
+* (T37472) update.php will purge ResourceLoader cache unless --nopurge is passed to it.
 
 === Action API changes in 1.25 ===
 * (T67403) XML tag highlighting is now only performed for formats
index 12ef91a..702f850 100644 (file)
@@ -934,6 +934,7 @@ abstract class DatabaseUpdater {
                }
                $blobStore = new MessageBlobStore();
                $blobStore->clear();
+               $this->db->delete( 'module_deps', '*', __METHOD__ );
                $this->output( "done.\n" );
        }