From: Timo Tijhof Date: Fri, 10 Apr 2015 19:35:13 +0000 (+0100) Subject: installer: Clear module_deps cache in updater X-Git-Tag: 1.31.0-rc.0~11737^2 X-Git-Url: http://git.cyclocoop.org/%24dirpuce/puce%24spip_lang_rtl.gif?a=commitdiff_plain;h=fad5b2381663658d02e13ddda6a96898cafbcf78;p=lhc%2Fweb%2Fwiklou.git installer: Clear module_deps cache in updater 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 --- diff --git a/RELEASE-NOTES-1.25 b/RELEASE-NOTES-1.25 index 5f0b8aa7f8..aad297626e 100644 --- a/RELEASE-NOTES-1.25 +++ b/RELEASE-NOTES-1.25 @@ -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 diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index 12ef91a3a7..702f850c98 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -934,6 +934,7 @@ abstract class DatabaseUpdater { } $blobStore = new MessageBlobStore(); $blobStore->clear(); + $this->db->delete( 'module_deps', '*', __METHOD__ ); $this->output( "done.\n" ); }