public function clear($regionName = null) {
        $path = $this->getPath($regionName);
        $result = count(glob($path . DIRECTORY_SEPARATOR . '*.cache'));

        array_map('unlink', glob($path . DIRECTORY_SEPARATOR . '*.cache'));
        array_map('unlink', glob($path . DIRECTORY_SEPARATOR . '*.policy'));

        return $result;
    }
public function clear($regionName = null) {
        $path = $this->getPath($regionName);
        $result = count(glob($path . DIRECTORY_SEPARATOR . '*.cache'));

        array_map('unlink', glob($path . DIRECTORY_SEPARATOR . '*.cache'));
        array_map('unlink', glob($path . DIRECTORY_SEPARATOR . '*.policy'));

        return $result;
    }
public function clear ( $ regionName = null ) { $ path = $ this -> getPath ( $ regionName ) ; $ result = count ( glob ( $ path . DIRECTORY_SEPARATOR . '*.cache' ) ) ; array_map ( 'unlink' , glob ( $ path . DIRECTORY_SEPARATOR . '*.cache' ) ) ; array_map ( 'unlink' , glob ( $ path . DIRECTORY_SEPARATOR . '*.policy' ) ) ; return $ result ; }
Removes all cache entries.

@param string $regionName A name of region.

@return int Number of deleted records.
Removes all cache entries .