mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
Merge branch 'feature/multiplerandom' of https://github.com/jikan-me/jikan-rest into feature/multiplerandom
This commit is contained in:
commit
39f18c212b
@ -67,10 +67,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