Merge pull request #8032 from kitingChris/feature/cacheClearWithEmpty

using emptyDirectory instead of remove for clearing the cache
main
Jordi Boggiano 5 years ago committed by GitHub
commit 5177293e21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save