/** * {@inheritdoc} */ public function clear() { $files = $this->fileSystem->glob($this->cachePath . '/*'); if (is_array($files)) { foreach ($files as $file) { if ($this->fileSystem->isFile($file) && $this->fileSystem->delete($file) === false) { return false; } } } return true; }