/** * @param array $additionalTags */ public function clearDependentCache($additionalTags = array()) { try { $tags = array("object_" . $this->getId(), "object_properties", "output"); $tags = array_merge($tags, $additionalTags); Cache::clearTags($tags); } catch (\Exception $e) { \Logger::crit($e); } }
/** Clears the column information for the given table. * @param $table */ protected function resetValidTableColumnsCache($table) { $cacheKey = self::CACHEKEY . $table; \Zend_Registry::getInstance()->offsetUnset($cacheKey); Cache::clearTags(array("system", "resource")); }
/** * @return void */ public function delete() { if (is_file($this->getConfigFile())) { unlink($this->getConfigFile()); } // clear cache tags Cache::clearTags(array("tagmanagement", "output")); }
public function cleanupAction() { $listClass = "\\Pimcore\\Model\\Translation\\" . ucfirst($this->getParam("type")) . "\\Listing"; if (Tool::classExists($listClass)) { $list = new $listClass(); $list->cleanup(); \Pimcore\Model\Cache::clearTags(array("translator", "translate")); $this->_helper->json(array("success" => true)); } $this->_helper->json(array("success" => false)); }
/** * @return void */ public static function clearDependentCache() { \Pimcore\Model\Cache::clearTags(array("translator", "translate")); }