mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge pull request #560 from jikan-me/bugfix/microcaching-including-omitted-attributes
Bugfix/microcaching including omitted attributes
This commit is contained in:
commit
f9d6f87470
@ -64,10 +64,13 @@ class MicroCaching
|
|||||||
|
|
||||||
// if cache exists, return cache
|
// if cache exists, return cache
|
||||||
if (Cache::has($fingerprint)) {
|
if (Cache::has($fingerprint)) {
|
||||||
|
$response = \json_decode(Cache::get($fingerprint), true);
|
||||||
|
|
||||||
|
unset($response['meta']);
|
||||||
|
unset($response['links']);
|
||||||
|
|
||||||
return response()
|
return response()
|
||||||
->json(
|
->json($response);
|
||||||
\json_decode(Cache::get($fingerprint), true)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// set cache
|
// set cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user