| @@ 393-415 (lines=23) @@ | ||
| 390 | ||
| 391 | $return = null; |
|
| 392 | ||
| 393 | } else if ( $expire < $time ) { |
|
| 394 | ||
| 395 | $return = null; |
|
| 396 | ||
| 397 | } else { |
|
| 398 | ||
| 399 | $data = file_get_contents($cacheFile); |
|
| 400 | ||
| 401 | if ( $data === false ) { |
|
| 402 | ||
| 403 | $this->raiseError("Error reading cache content (File), exiting gracefully", pathinfo($cacheFile)); |
|
| 404 | ||
| 405 | $this->setErrorState(); |
|
| 406 | ||
| 407 | $return = null; |
|
| 408 | ||
| 409 | } else { |
|
| 410 | ||
| 411 | $return = $data; |
|
| 412 | ||
| 413 | } |
|
| 414 | ||
| 415 | } |
|
| 416 | ||
| 417 | } else { |
|
| 418 | ||
| @@ 451-471 (lines=21) @@ | ||
| 448 | ||
| 449 | $return = null; |
|
| 450 | ||
| 451 | } else if ( intval($expire) < $time ) { |
|
| 452 | ||
| 453 | $return = null; |
|
| 454 | ||
| 455 | } else { |
|
| 456 | ||
| 457 | $data = file_get_contents($cacheFile); |
|
| 458 | ||
| 459 | if ( $data === false ) { |
|
| 460 | ||
| 461 | $this->raiseError("Error reading cache content (File), exiting gracefully", pathinfo($cacheFile)); |
|
| 462 | ||
| 463 | $return = null; |
|
| 464 | ||
| 465 | } else { |
|
| 466 | ||
| 467 | $return = $data; |
|
| 468 | ||
| 469 | } |
|
| 470 | ||
| 471 | } |
|
| 472 | ||
| 473 | } else { |
|
| 474 | ||