public function purgeCache($force = FALSE) {

		if(($path = $this->getCachePath($force))) {
			foreach(glob($path. '*') as $f) {
				if(!unlink($f)) {
					throw new FilesystemFolderException(sprintf('Cache folder %s could not be purged!', $this->path . self::CACHE_PATH));
				}
			}
		}

	}
public function purgeCache($force = FALSE) {

		if(($path = $this->getCachePath($force))) {
			foreach(glob($path. '*') as $f) {
				if(!unlink($f)) {
					throw new FilesystemFolderException(sprintf('Cache folder %s could not be purged!', $this->path . self::CACHE_PATH));
				}
			}
		}

	}
public function purgeCache ( $ force = FALSE ) { if ( ( $ path = $ this -> getCachePath ( $ force ) ) ) { foreach ( glob ( $ path . '*' ) as $ f ) { if ( ! unlink ( $ f ) ) { throw new FilesystemFolderException ( sprintf ( 'Cache folder %s could not be purged!' , $ this -> path . self :: CACHE_PATH ) ) ; } } } }
empties the cache when found

@param boolean $force
@throws FilesystemFolderException
empties the cache when found