Force removal of all caches after WCFSetup
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Oct 2012 02:06:22 +0000 (04:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Oct 2012 02:06:22 +0000 (04:06 +0200)
Fixes #564

wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 43927456721c48d876268682bb03c70ddf4f9e79..2c21ee17aa917ceb03e3b738d7c89c14152df077 100644 (file)
@@ -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');
+                               }
                        }
                }