Merge pull request #5638 from appwrite/cache-perm-fix

cache perm fix
This commit is contained in:
Christy Jacob
2023-06-06 16:42:37 +05:30
committed by GitHub
+1 -1
View File
@@ -465,7 +465,7 @@ App::shutdown()
]) ;
$signature = md5($data);
$cacheLog = $dbForProject->getDocument('cache', $key);
$cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key));
$accessedAt = $cacheLog->getAttribute('accessedAt', '');
$now = DateTime::now();
if ($cacheLog->isEmpty()) {