public function clearOutputCacheAction() { if ($this->getUser()->isAllowed("clear_cache")) { // remove "output" out of the ignored tags, if a cache lifetime is specified Pimcore_Model_Cache::removeIgnoredTagOnClear("output"); // empty document cache Pimcore_Model_Cache::clearTag("output"); $this->_helper->json(array("success" => true)); } else { if ($this->getUser() != null) { Logger::err("user [" . $this->getUser()->getId() . "] attempted to clear ouput cache, but has no permission to do so."); } else { Logger::err("attempt to clear output cache, but no user in session."); } } $this->_helper->json(false); }