src/Directory.php
/**
     * Removes all the cached entries associated with the given tag names.
     *
     * @param  array $tags The array of tags to remove.
     * @return boolean Returns True on success or False on failure.
     */
Removes all the cached entries associated with the given tag names.
@param  array $tags The array of tags to remove.
@return boolean Returns True on success or False on failure.
Removes all the cached entries associated with the given tag names . @param array $tags The array of tags to remove . @return boolean Returns True on success or False on failure .
public function clean(array $tags)
    {
        $cleaned = false;
        foreach ($tags as $tag) {
            $ids = $this->loadTag($tag);
            if (null === $ids) {
                continue;
            }
            $cleaned = true;
            foreach ($ids as $key) {
                $this->delete($this->removePrefixKey($key));
            }
            unlink($this->getTagPath($this->mapTag($tag)));
        }
        return $cleaned;
    }
public function clean ( array $ tags ) { $ cleaned = false ; foreach ( $ tags as $ tag ) { $ ids = $ this -> loadTag ( $ tag ) ; if ( null === $ ids ) { continue ; } $ cleaned = true ; foreach ( $ ids as $ key ) { $ this -> delete ( $ this -> removePrefixKey ( $ key ) ) ; } unlink ( $ this -> getTagPath ( $ this -> mapTag ( $ tag ) ) ) ; } return $ cleaned ; }
Removes all the cached entries associated with the given tag names.
Removes all the cached entries associated with the given tag names .