mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
disabling route from cache
This commit is contained in:
1 parent
96c822ffb3
commit
f9b8a0a661
1 file changed
+2
-1
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user