lithium\storage\cache\adapter\File::clear()

public method

Clears entire cache by flushing it. Please note that a scope - in case one is set - is not honored.

The operation will continue to remove keys even if removing one single key fails, clearing thoroughly as possible.

Returns

boolean

true on successful clearing, false if failed partially or entirely.

Source

	public function clear() {
		$result = true;
		foreach (new DirectoryIterator($this->_config['path']) as $file) {
			if (!$file->isFile()) {
				continue;
			}
			$result = $this->_delete($file->getBasename()) && $result;
		}
		return $result;
	}