using emptyDirectory instead of remove for clearing the cache
parent
522ea033a3
commit
7c64300a1b
|
@ -189,7 +189,8 @@ class Cache
|
|||
public function clear()
|
||||
{
|
||||
if ($this->enabled) {
|
||||
return $this->filesystem->removeDirectory($this->root);
|
||||
$this->filesystem->emptyDirectory($this->root);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue