示例#1
0
 /**
  * @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);
     }
 }
示例#2
0
 /** 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"));
 }
示例#3
0
 /**
  * @return void
  */
 public function delete()
 {
     if (is_file($this->getConfigFile())) {
         unlink($this->getConfigFile());
     }
     // clear cache tags
     Cache::clearTags(array("tagmanagement", "output"));
 }
示例#4
0
 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"));
 }