mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
fixes #519
This commit is contained in:
parent
2fa3958ad9
commit
45cb4f0659
@ -64,10 +64,14 @@ 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