use Laminas\Diactoros\Response\RedirectResponse;
use wcf\acp\page\CacheListPage;
use wcf\action\AbstractAction;
-use wcf\data\package\update\server\PackageUpdateServer;
-use wcf\system\cache\CacheHandler;
-use wcf\system\language\LanguageFactory;
+use wcf\system\cache\command\ClearCache;
use wcf\system\request\LinkHandler;
-use wcf\system\style\StyleHandler;
/**
* Clears the cache.
*
* @author Tim Duesterhus
- * @copyright 2001-2019 WoltLab GmbH
+ * @copyright 2001-2022 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Acp\Action
*/
{
parent::execute();
- // reset stylesheets
- StyleHandler::resetStylesheets();
-
- // delete language cache and compiled templates as well
- LanguageFactory::getInstance()->deleteLanguageCache();
-
- // get package dirs
- CacheHandler::getInstance()->flushAll();
-
- // reset package update servers and the package cache
- PackageUpdateServer::resetAll();
+ $command = new ClearCache();
+ $command();
$this->executed();