From: Alexander Ebert Date: Thu, 9 Feb 2012 17:48:51 +0000 (+0100) Subject: Fixed cache deletion to omit everything else :D X-Git-Tag: 2.0.0_Beta_1~1358^2~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=089de803501f2648a29d987fffa40145293b0219;p=GitHub%2FWoltLab%2FWCF.git Fixed cache deletion to omit everything else :D --- diff --git a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php index 678d20a9fe..abb46361ce 100755 --- a/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php +++ b/wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php @@ -1,14 +1,12 @@ execute(); while ($row = $statement->fetchArray()) { - $packageDir = FileUtil::getRealPath(WCF_DIR . $row['packageDir']); + $cacheDir = FileUtil::getRealPath(WCF_DIR . $row['packageDir'] . 'cache/'); - CacheHandler::getInstance()->clear($packageDir, '*.php'); + CacheHandler::getInstance()->clear($cacheDir, '*.php'); } } }