src/Psr16/ShmopCacheEngine.php 1 location
|
@@ 109-113 (lines=5) @@
|
| 106 |
|
$fileTtl = intval(file_get_contents("$file.ttl")); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
if (!empty($fileTtl) && time() >= $fileTtl) { |
| 110 |
|
$this->logger->info("[Shmop Cache] File too old. Ignoring"); |
| 111 |
|
$this->deleteFromFilenameToken($file); |
| 112 |
|
return false; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
return true; |
| 116 |
|
} |
src/Psr16/FileSystemCacheEngine.php 1 location
|
@@ 203-208 (lines=6) @@
|
| 200 |
|
$fileTtl = intval(file_get_contents("$fileKey.ttl")); |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
if (!empty($fileTtl) && time() >= $fileTtl) { |
| 204 |
|
$this->logger->info("[Filesystem cache] File too old. Ignoring '$key'"); |
| 205 |
|
$this->delete($key); |
| 206 |
|
|
| 207 |
|
return false; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
return true; |
| 211 |
|
} |