make view api use file cache

This commit is contained in:
shimon
2024-10-25 19:03:07 +03:00
parent 705bd8a385
commit c02b484128
2 changed files with 1 additions and 11 deletions
-11
View File
@@ -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,
+1
View File
@@ -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));