Pimcore\Cache::removeIgnoredTagOnClear PHP Method

removeIgnoredTagOnClear() public static method

public static removeIgnoredTagOnClear ( $tag ) : void
$tag
return void
    public static function removeIgnoredTagOnClear($tag)
    {
        $tagPosition = array_search($tag, self::$ignoredTagsOnClear);
        if ($tagPosition !== false) {
            array_splice(self::$ignoredTagsOnClear, $tagPosition, 1);
        }
    }

Usage Example

Ejemplo n.º 1
0
 public function clearOutputCacheAction()
 {
     $this->checkPermission("clear_cache");
     // remove "output" out of the ignored tags, if a cache lifetime is specified
     Cache::removeIgnoredTagOnClear("output");
     // empty document cache
     Cache::clearTag("output");
     $this->_helper->json(array("success" => true));
 }
All Usage Examples Of Pimcore\Cache::removeIgnoredTagOnClear