cache log
This commit is contained in:
parent
605ce13beb
commit
05d084542f
|
|
@ -2,6 +2,7 @@
|
|||
namespace SerenityNow\Cacheroute\Classes;
|
||||
|
||||
use Illuminate\Http\Request as LaravelRequest;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use SerenityNow\Cacheroute\Models\CacheRoute;
|
||||
use Closure;
|
||||
|
||||
|
|
@ -32,7 +33,11 @@ class RouteCacheMiddleware
|
|||
{
|
||||
$cacheKey = $this->getCacheKey($request->url());
|
||||
if (\Cache::has($cacheKey)) {
|
||||
return \Response::make($this->getCachedContent($cacheKey, $request, \Cache::get($cacheKey)), 200);
|
||||
$content = \Cache::get($cacheKey);
|
||||
if($content)
|
||||
return \Response::make($this->getCachedContent($cacheKey, $request, $content), 200);
|
||||
else
|
||||
Log::error('blank cache',$content,$cacheKey);
|
||||
}
|
||||
|
||||
$response = $next($request);
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="heading__row">
|
||||
<a href="{{post.featured_image|media_cdn}}" class="heading__image primary progressive replace">
|
||||
<a href="{{post.featured_image|media}}" class="heading__image primary progressive replace">
|
||||
<!-- <picture>-->
|
||||
<!-- <source media="min-width:650px" srcset="{{post.featured_image|media_cdn}}">-->
|
||||
<!-- <img class="preview" src="{{post.featured_image|media_cdn}}" alt="">-->
|
||||
|
|
|
|||
Loading…
Reference in New Issue