| @@ 524-546 (lines=23) @@ | ||
| 521 | ||
| 522 | $cache = $caches[$cache_id]; |
|
| 523 | ||
| 524 | if ( $cache->isEnabled() ) { |
|
| 525 | ||
| 526 | $result = $cache->get($name); |
|
| 527 | ||
| 528 | if ( $cache->getErrorState() === false ) { |
|
| 529 | ||
| 530 | $this->selected_cache = $cache_id; |
|
| 531 | ||
| 532 | $active_cache = true; |
|
| 533 | ||
| 534 | break; |
|
| 535 | ||
| 536 | } else { |
|
| 537 | ||
| 538 | unset($caches[$cache_id]); |
|
| 539 | ||
| 540 | } |
|
| 541 | ||
| 542 | } else { |
|
| 543 | ||
| 544 | unset($caches[$cache_id]); |
|
| 545 | ||
| 546 | } |
|
| 547 | ||
| 548 | } |
|
| 549 | ||
| @@ 572-594 (lines=23) @@ | ||
| 569 | ||
| 570 | $cache = $caches[$cache_id]; |
|
| 571 | ||
| 572 | if ( $cache->isEnabled() ) { |
|
| 573 | ||
| 574 | $result = $cache->get($name); |
|
| 575 | ||
| 576 | if ( $cache->getErrorState() === false ) { |
|
| 577 | ||
| 578 | $this->selected_cache = $cache_id; |
|
| 579 | ||
| 580 | $active_cache = true; |
|
| 581 | ||
| 582 | break; |
|
| 583 | ||
| 584 | } else { |
|
| 585 | ||
| 586 | unset($weights[$cache_id]); |
|
| 587 | ||
| 588 | } |
|
| 589 | ||
| 590 | } else { |
|
| 591 | ||
| 592 | unset($weights[$cache_id]); |
|
| 593 | ||
| 594 | } |
|
| 595 | ||
| 596 | } |
|
| 597 | ||