@@ -300,6 +300,10 @@ |
||
300 | 300 | return md5(json_encode($arg, JSON_FORCE_OBJECT) . $this->template . get_called_class()); |
301 | 301 | } |
302 | 302 | |
303 | + /** |
|
304 | + * @param string $key |
|
305 | + * @param \Closure $phpCode |
|
306 | + */ |
|
303 | 307 | private function cacheResult($key, $phpCode) |
304 | 308 | { |
305 | 309 | $cache = app()->make('cache'); |