From d477de256a2b99e9494efcf39472655a3aef3f77 Mon Sep 17 00:00:00 2001 From: shimon Date: Thu, 10 Oct 2024 11:40:13 +0300 Subject: [PATCH] update file preview cache save flow --- app/controllers/shared/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/shared/api.php b/app/controllers/shared/api.php index 229d2e3588..1aee73d021 100644 --- a/app/controllers/shared/api.php +++ b/app/controllers/shared/api.php @@ -751,6 +751,7 @@ App::shutdown() $cache = new Cache( new Filesystem(APP_STORAGE_CACHE . DIRECTORY_SEPARATOR . 'app-' . $project->getId()) ); + $timestamp = 60 * 60 * 24 * 30; $data = $cache->load($key, $timestamp); if ($signature !== $cacheLog->getAttribute('signature') || empty($data)) {