diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 97f4d312a..696ddc04b 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -131,7 +131,6 @@ App::init() if ($useCache) { - $key = md5($request->getURI() . implode('*', $request->getParams())); $cache = new Cache(new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $project->getId())); $timestamp = 60 * 60 * 24 * 30; @@ -160,6 +159,8 @@ App::init() ->send(base64_decode($data['payload'])) ; + $route->setActive(false); + } else { $response->addHeader('X-Appwrite-Cache', 'miss'); }