mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 00:18:25 +00:00
update file preview cache save flow
This commit is contained in:
parent
cffbc77d05
commit
d477de256a
1 changed files with 1 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue