cache fix
This commit is contained in:
parent
05d084542f
commit
e983f1bfc8
|
|
@ -33,11 +33,13 @@ class RouteCacheMiddleware
|
|||
{
|
||||
$cacheKey = $this->getCacheKey($request->url());
|
||||
if (\Cache::has($cacheKey)) {
|
||||
|
||||
$content = \Cache::get($cacheKey);
|
||||
|
||||
if($content)
|
||||
return \Response::make($this->getCachedContent($cacheKey, $request, $content), 200);
|
||||
else
|
||||
Log::error('blank cache',$content,$cacheKey);
|
||||
\Cache::forget($cacheKey);
|
||||
}
|
||||
|
||||
$response = $next($request);
|
||||
|
|
|
|||
Loading…
Reference in New Issue