mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
make view api use file cache
This commit is contained in:
@@ -45,17 +45,6 @@ $commonCollections = [
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('mimeType'),
|
||||
'type' => Database::VAR_STRING,
|
||||
'format' => '',
|
||||
'size' => 255, // https://tools.ietf.org/html/rfc4288#section-4.2
|
||||
'signed' => true,
|
||||
'required' => false,
|
||||
'default' => null,
|
||||
'array' => false,
|
||||
'filters' => [],
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('headers'),
|
||||
'type' => Database::VAR_STRING,
|
||||
|
||||
@@ -735,6 +735,7 @@ App::shutdown()
|
||||
if(!empty($request->getRangeStart())) $keyParams .= '*'.$request->getRangeStart();
|
||||
if(!empty($request->getRangeEnd())) $keyParams .= '*'.$request->getRangeEnd();
|
||||
$keyParams .= '*'. APP_CACHE_BUSTER;
|
||||
var_dump($keyParams);
|
||||
$key = md5($keyParams);
|
||||
$signature = md5($data['payload']);
|
||||
$cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key));
|
||||
|
||||
Reference in New Issue
Block a user