Conditions | 3 |
Paths | 4 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function afterCall($proxied, $method, $args, $result) |
||
17 | { |
||
18 | $message = (empty($result)) ? "Missed: {$args[0]}" : "Hit: {$args[0]}"; |
||
19 | if ($cache = Injector::inst()->get(CacheInterface::class . '.backend')) { |
||
20 | $cache->templateCache[$message] = array('cache_result' => array('result' => $result)); |
||
21 | } |
||
22 | } |
||
23 | } |
||
24 |