|
@@ -3515,18 +3515,18 @@ namespace Tqdev\PhpCrudApi\Cache {
|
3515
|
3515
|
if (strlen($entry) != $len) {
|
3516
|
3516
|
continue;
|
3517
|
3517
|
}
|
3518
|
|
- if (is_file($filename)) {
|
|
3518
|
+ if (file_exists($filename) && is_file($filename)) {
|
3519
|
3519
|
if ($all || $this->getString($filename) == null) {
|
3520
|
|
- unlink($filename);
|
|
3520
|
+ @unlink($filename);
|
3521
|
3521
|
}
|
3522
|
3522
|
}
|
3523
|
3523
|
} else {
|
3524
|
3524
|
if (strlen($entry) != $segments[0]) {
|
3525
|
3525
|
continue;
|
3526
|
3526
|
}
|
3527
|
|
- if (is_dir($filename)) {
|
|
3527
|
+ if (file_exists($filename) && is_dir($filename)) {
|
3528
|
3528
|
$this->clean($filename, array_slice($segments, 1), $len - $segments[0], $all);
|
3529
|
|
- rmdir($filename);
|
|
3529
|
+ @rmdir($filename);
|
3530
|
3530
|
}
|
3531
|
3531
|
}
|
3532
|
3532
|
}
|