We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0615b7 + 00102fd commit cafc8b4Copy full SHA for cafc8b4
phpfastcache/3.0.0/drivers/files.php
@@ -118,7 +118,7 @@ function driver_get($keyword, $option = array()) {
118
119
function driver_delete($keyword, $option = array()) {
120
$file_path = $this->getFilePath($keyword,true);
121
- if(@unlink($file_path)) {
+ if(file_exists($file_path) && @unlink($file_path)) {
122
return true;
123
} else {
124
return false;
0 commit comments