Merge pull request #8324 from appwrite/refactor-usage-sn

Sync refactor-usage-sn into 1.5.x
This commit is contained in:
Christy Jacob
2024-06-25 22:50:42 +04:00
committed by GitHub
4 changed files with 54630 additions and 2 deletions
+6 -1
View File
@@ -462,7 +462,12 @@ App::init()
->setContentType($cacheLog->getAttribute('mimeType'))
->send($data);
} else {
$response->addHeader('X-Appwrite-Cache', 'miss');
$response
->addHeader('Cache-Control', 'no-cache, no-store, must-revalidate')
->addHeader('Pragma', 'no-cache')
->addHeader('Expires', 0)
->addHeader('X-Appwrite-Cache', 'miss')
;
}
}
});
@@ -4754,7 +4754,7 @@ trait DatabasesBase
$this->assertEquals($longtext['headers']['status-code'], 202);
for ($i = 0; $i < 1; $i++) {
for ($i = 0; $i < 10; $i++) {
$this->client->call(Client::METHOD_POST, '/databases/' . $data['databaseId'] . '/collections/' . $data['$id'] . '/documents', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
+1
View File
@@ -999,6 +999,7 @@ trait UsersBase
$this->assertEquals($user['headers']['status-code'], 200);
$this->assertNotEmpty($user['body']['$id']);
$this->assertEmpty($user['body']['password']);
sleep(5);
$session = $this->client->call(Client::METHOD_POST, '/account/sessions/email', [
'content-type' => 'application/json',
File diff suppressed because it is too large Load Diff