public function purge()
    {
        if (file_exists($this->directory)) {
            $files          = $this->getCachedFiles();
            $successDeleted = true;
            foreach ($files as $file) {
                $successDeleted &= $this->removeCacheFile($file);
            }

            return (bool)$successDeleted;
        }

        return false;
    }
public function purge()
    {
        if (file_exists($this->directory)) {
            $files          = $this->getCachedFiles();
            $successDeleted = true;
            foreach ($files as $file) {
                $successDeleted &= $this->removeCacheFile($file);
            }

            return (bool)$successDeleted;
        }

        return false;
    }
public function purge ( ) { if ( file_exists ( $ this -> directory ) ) { $ files = $ this -> getCachedFiles ( ) ; $ successDeleted = true ; foreach ( $ files as $ file ) { $ successDeleted &= $ this -> removeCacheFile ( $ file ) ; } return ( bool ) $ successDeleted ; } return false ; }
purge the persistence directory

@return boolean
purge the persistence directory