diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index dc8205d5e5..dbf764f0e6 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -823,13 +823,11 @@ App::shutdown() $resourceType = $parseLabel($resourceType, $responsePayload, $requestParams, $user); } - // Build a deterministic cache key $params = $request->getParams(); ksort($params); $key = md5($request->getURI() . '*' . http_build_query($params) . '*' . APP_CACHE_BUSTER); $signature = md5($data['payload']); - // Create or update the cache log $now = DateTime::now(); $cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key));