Fixed cache deletion to omit everything else :D
authorAlexander Ebert <ebert@woltlab.com>
Thu, 9 Feb 2012 17:48:51 +0000 (18:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 9 Feb 2012 17:48:51 +0000 (18:48 +0100)
wcfsetup/install/files/lib/acp/action/InstallPackageAction.class.php

index 678d20a9fe7771338478f4b9ebbda708d54aa9eb..abb46361ce74dd4b4691c624f246f19b08eebd36 100755 (executable)
@@ -1,14 +1,12 @@
 <?php
 namespace wcf\acp\action;
-use wcf\system\cache\CacheHandler;
-
-use wcf\util\FileUtil;
-
 use wcf\action\AbstractDialogAction;
 use wcf\data\package\installation\queue\PackageInstallationQueue;
+use wcf\system\cache\CacheHandler;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\package\PackageInstallationDispatcher;
 use wcf\system\WCF;
+use wcf\util\FileUtil;
 use wcf\util\StringUtil;
 
 /**
@@ -219,9 +217,9 @@ class InstallPackageAction extends AbstractDialogAction {
                $statement->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');
                }
        }
 }