From 089de803501f2648a29d987fffa40145293b0219 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 9 Feb 2012 18:48:51 +0100 Subject: [PATCH] Fixed cache deletion to omit everything else :D --- .../lib/acp/action/InstallPackageAction.class.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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'); } } } -- 2.20.1