From fad5b2381663658d02e13ddda6a96898cafbcf78 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 10 Apr 2015 20:35:13 +0100 Subject: [PATCH] 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 --- RELEASE-NOTES-1.25 | 1 + includes/installer/DatabaseUpdater.php | 1 + 2 files changed, 2 insertions(+) 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" ); } -- 2.20.1