<?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;
/**
$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');
}
}
}