diff --git a/app/Http/Middleware/MicroCaching.php b/app/Http/Middleware/MicroCaching.php index 115b1167..b3377b95 100644 --- a/app/Http/Middleware/MicroCaching.php +++ b/app/Http/Middleware/MicroCaching.php @@ -64,10 +64,13 @@ public function handle($request, Closure $next) // if cache exists, return cache if (Cache::has($fingerprint)) { + $response = \json_decode(Cache::get($fingerprint), true); + + unset($response['meta']); + unset($response['links']); + return response() - ->json( - \json_decode(Cache::get($fingerprint), true) - ); + ->json($response); } // set cache