Pimcore\Cache::clearTag PHP Method

clearTag() public static method

Removes entries from the cache matching the given tag
public static clearTag ( string $tag ) : void
$tag string
return void
    public static function clearTag($tag)
    {
        self::clearTags([$tag]);
    }

Usage Example

Ejemplo n.º 1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     if ($input->getOption("tags")) {
         $tags = explode(",", $input->getOption("tags"));
         Cache::clearTags($tags);
     } elseif ($input->getOption("output")) {
         Cache::clearTag("output");
     } else {
         Cache::clearAll();
     }
 }
All Usage Examples Of Pimcore\Cache::clearTag