$key = sha1(Uri::current()); try { $response = Cache::get($key); } catch (\CacheNotFoundException $e) { $response = Request::forge()->execute()->response(); Cache::set($key, $response, 300); }
It looks like you're new here. If you want to get involved, click one of these buttons!