|
@@ 198-210 (lines=13) @@
|
| 195 |
|
|
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
foreach ( $filesList as $file ) { |
| 199 |
|
|
| 200 |
|
if ( unlink($file) === false ) { |
| 201 |
|
|
| 202 |
|
$this->raiseError("Failed to unlink cache file (File), exiting gracefully", pathinfo($file)); |
| 203 |
|
|
| 204 |
|
$this->setErrorState(); |
| 205 |
|
|
| 206 |
|
$return = false; |
| 207 |
|
|
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
} |
| 211 |
|
|
| 212 |
|
return $return; |
| 213 |
|
|
|
@@ 233-245 (lines=13) @@
|
| 230 |
|
|
| 231 |
|
$filesList = glob($this->cache_folder."*.{cache,expire}", GLOB_BRACE); |
| 232 |
|
|
| 233 |
|
foreach ( $filesList as $file ) { |
| 234 |
|
|
| 235 |
|
if ( unlink($file) === false ) { |
| 236 |
|
|
| 237 |
|
$this->raiseError("Failed to unlink whole cache (File), exiting gracefully", pathinfo($file)); |
| 238 |
|
|
| 239 |
|
$this->setErrorState(); |
| 240 |
|
|
| 241 |
|
$return = false; |
| 242 |
|
|
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
} |
| 246 |
|
|
| 247 |
|
return $return; |
| 248 |
|
|