Skip to content

Commit 242dc56

Browse files
committed
fix: prevent cache expiring too easily
1 parent f90354a commit 242dc56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Adapter/DBCache.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ public function save()
6464
$contents = $this->getForStorage();
6565
$blobCache = BlobCache::instance($this->key, $this->expire);
6666
$blobCache->Contents = $contents;
67-
$blobCache->write();
67+
68+
// Force write to ensure modified date is refreshed
69+
$blobCache->write(false, false, true);
6870
}
6971
}

0 commit comments

Comments
 (0)