update file preview cache save flow

This commit is contained in:
shimon 2024-10-10 11:40:13 +03:00
parent cffbc77d05
commit d477de256a

View file

@ -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)) {