Skip to content

Commit

Permalink
Merge pull request #13 from byjg/5.0
Browse files Browse the repository at this point in the history
Fix FileSystemCacheEngine::clear()
  • Loading branch information
byjg authored Dec 17, 2024
2 parents f4f0c6f + 139bef7 commit c25e8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Psr16/FileSystemCacheEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ public function clear(): bool
$patternKey = $this->fixKey('*');
$list = glob($patternKey);
foreach ($list as $file) {
unlink($file);
if (file_exists($file)) {
unlink($file);
}
}
return true;
}
Expand Down

0 comments on commit c25e8a0

Please sign in to comment.