diff --git a/src/Stash/Driver/FileSystem.php b/src/Stash/Driver/FileSystem.php index 442b7907..33670e1c 100644 --- a/src/Stash/Driver/FileSystem.php +++ b/src/Stash/Driver/FileSystem.php @@ -321,6 +321,11 @@ protected function makePath($key = null) public function clear($key = null) { $path = $this->makePath($key); + + if($key === null) { + return Utilities::deleteRecursive($path, false); + } + if (is_file($path)) { $return = true; unlink($path);