Merge pull request #560 from jikan-me/bugfix/microcaching-including-omitted-attributes

Bugfix/microcaching including omitted attributes
This commit is contained in:
Irfan (Nekomata) 2024-11-13 22:43:31 +05:00 committed by GitHub
commit f9d6f87470
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,10 +64,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