public function clearCacheAction()
{
$this->checkPermission("clear_cache");
// empty document cache
Cache::clearAll();
$db = \Pimcore\Db::get();
$db->query("truncate table cache_tags");
$db->query("truncate table cache");
// empty cache directory
recursiveDelete(PIMCORE_CACHE_DIRECTORY, false);
// PIMCORE-1854 - recreate .dummy file => should remain
\Pimcore\File::put(PIMCORE_CACHE_DIRECTORY . "/.dummy", "");
\Pimcore::getEventManager()->trigger("system.cache.clear", $this);
$this->_helper->json(["success" => true]);
}