Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function afterCall($proxied, $method, $args, $result) |
||
16 | { |
||
17 | $message = (empty($result)) ? "Missed: {$args[0]}" : "Hit: {$args[0]}"; |
||
18 | PartialCacheCollector::addTemplateCache( |
||
19 | $message, |
||
20 | array( |
||
21 | 'cache_result' => |
||
22 | array('result' => trim(str_replace("\n", '', $result))) |
||
23 | ) |
||
24 | ); |
||
25 | } |
||
26 | } |
||
27 |