1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

disabling route from cache

This commit is contained in:
shimon 2022-08-10 10:08:48 +03:00
parent 96c822ffb3
commit f9b8a0a661

View file

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