From: Alexander Ebert Date: Mon, 15 Oct 2012 02:06:22 +0000 (+0200) Subject: Force removal of all caches after WCFSetup X-Git-Tag: 2.0.0_Beta_1~870^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14077e5cf14bb40c4a4541c1cb0e91ed58015cb1;p=GitHub%2FWoltLab%2FWCF.git Force removal of all caches after WCFSetup Fixes #564 --- diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index 4392745672..2c21ee17aa 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -136,6 +136,11 @@ class PackageInstallationDispatcher { if ($this->action == 'install') { $this->saveLocalizedPackageInfos(); + + // remove all cache files after WCFSetup + if (!PACKAGE_ID) { + CacheHandler::getInstance()->clear(WCF_DIR.'cache/', 'cache.*.php'); + } } }