mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
debug
This commit is contained in:
parent
7921bd62d9
commit
36e4c8c399
1 changed files with 3 additions and 1 deletions
|
|
@ -471,6 +471,7 @@ App::init()
|
|||
$timestamp = 60 * 60 * 24 * 30;
|
||||
$data = $cache->load($key, $timestamp);
|
||||
if (!empty($data) && !$cacheLog->isEmpty()) {
|
||||
$timerStart = \microtime(true);
|
||||
$parts = explode('/', $cacheLog->getAttribute('resourceType'));
|
||||
$type = $parts[0] ?? null;
|
||||
|
||||
|
|
@ -506,7 +507,8 @@ App::init()
|
|||
throw new Exception(Exception::STORAGE_FILE_NOT_FOUND);
|
||||
}
|
||||
}
|
||||
|
||||
$timerEnd= \microtime(true);
|
||||
var_dump('Timer: ' . $timerEnd - $timerStart);
|
||||
$response
|
||||
->addHeader('Expires', \date('D, d M Y H:i:s', \time() + $timestamp) . ' GMT')
|
||||
->addHeader('X-Appwrite-Cache', 'hit')
|
||||
|
|
|
|||
Loading…
Reference in a new issue