Merge branch 'feature/multiplerandom' of https://github.com/jikan-me/jikan-rest into feature/multiplerandom

This commit is contained in:
Irfan 2024-11-13 23:11:28 +05:00
commit 39f18c212b

View File

@ -67,10 +67,13 @@ class MicroCaching
// 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