1
0
Fork 0
mirror of synced 2024-07-08 07:55:48 +12:00

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
commit afdad2e0ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -465,7 +465,7 @@ App::shutdown()
]) ; ]) ;
$signature = md5($data); $signature = md5($data);
$cacheLog = $dbForProject->getDocument('cache', $key); $cacheLog = Authorization::skip(fn () => $dbForProject->getDocument('cache', $key));
$accessedAt = $cacheLog->getAttribute('accessedAt', ''); $accessedAt = $cacheLog->getAttribute('accessedAt', '');
$now = DateTime::now(); $now = DateTime::now();
if ($cacheLog->isEmpty()) { if ($cacheLog->isEmpty()) {