From f9b8a0a661fbbc6df8cb338e496ef71284f0867d Mon Sep 17 00:00:00 2001 From: shimon Date: Wed, 10 Aug 2022 10:08:48 +0300 Subject: [PATCH] disabling route from cache --- app/controllers/shared/api.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 97f4d312a7..696ddc04b7 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'); }