src/Files.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)
    {
        $toRemove = array();
        $cleaned = false;
        foreach ($tags as $tag) {
            $keys = $this->loadTag($tag);
            if (null === $keys) {
                continue;
            }
            $cleaned = true;
            $toRemove = array_merge($toRemove, $keys);
        }
        $toRemove = array_unique($toRemove);
        foreach ($toRemove as $key) {
            $this->delete($this->removePrefixKey($key));
        }
        return $cleaned;
    }
public function clean ( array $ tags ) { $ toRemove = array ( ) ; $ cleaned = false ; foreach ( $ tags as $ tag ) { $ keys = $ this -> loadTag ( $ tag ) ; if ( null === $ keys ) { continue ; } $ cleaned = true ; $ toRemove = array_merge ( $ toRemove , $ keys ) ; } $ toRemove = array_unique ( $ toRemove ) ; foreach ( $ toRemove as $ key ) { $ this -> delete ( $ this -> removePrefixKey ( $ key ) ) ; } return $ cleaned ; }
Removes all the cached entries associated with the given tag names.
Removes all the cached entries associated with the given tag names .