Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | protected function handlePostBoot($isCaching, $hasCache, $key, $meta) |
||
26 | { |
||
27 | if ($isCaching) { |
||
28 | assert(isset($hasCache)); |
||
29 | if (!$hasCache) { |
||
30 | $cacheTime = env('APP_METADATA_CACHE_DURATION', null); |
||
31 | $cacheTime = !is_numeric($cacheTime) ? 10 : abs($cacheTime); |
||
32 | Cache::put($key, $meta, $cacheTime); |
||
33 | } |
||
34 | } else { |
||
35 | Cache::forget($key); |
||
36 | } |
||
37 | } |
||
38 | |||
56 | } |