public function purge($namespace)
    {
        $this->purgeRuntimeCache();

        $directory = $this->getDirectoryByNamespace($namespace);

        // delete entries and retrieve count
        $removedEntries = $this->removeEntries($directory);

        // remove namespace from array
        unset($this->directoriesByNamespace[$namespace]);

        // clear PHP's file cache
        $this->clear();

        // return the count of entries
        return $removedEntries;
    }
public function purge($namespace)
    {
        $this->purgeRuntimeCache();

        $directory = $this->getDirectoryByNamespace($namespace);

        // delete entries and retrieve count
        $removedEntries = $this->removeEntries($directory);

        // remove namespace from array
        unset($this->directoriesByNamespace[$namespace]);

        // clear PHP's file cache
        $this->clear();

        // return the count of entries
        return $removedEntries;
    }
public function purge ( $ namespace ) { $ this -> purgeRuntimeCache ( ) ; $ directory = $ this -> getDirectoryByNamespace ( $ namespace ) ; // delete entries and retrieve count $ removedEntries = $ this -> removeEntries ( $ directory ) ; // remove namespace from array unset ( $ this -> directoriesByNamespace [ $ namespace ] ) ; // clear PHP's file cache $ this -> clear ( ) ; // return the count of entries return $ removedEntries ; }
Flushes the cache.

This method is intend to purge the cache. It removes all caches datasets from the cache.

@param string $namespace The dataset namespace to purge

@author Benjamin Carl <opensource@clickalicious.de>

@return mixed Number of removed datasets on success, otherwise FALSE
Flushes the cache .