From d0e28fbc4e170a7feb61fde6cd829029b8fcf5a3 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 23 Sep 2024 14:25:54 +1200 Subject: [PATCH] fix: remove version specific cache causing issues moving files between stages CacheItemsTrait manages a cache based on s3 object file name to reduce API calls. This causes issues when publishing or unpublishing files due to CacheItemsTrait::getCache() returning separate caches for draft and published records. --- _config/assets.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_config/assets.yml b/_config/assets.yml index 1823a8c..13fa02b 100644 --- a/_config/assets.yml +++ b/_config/assets.yml @@ -6,6 +6,7 @@ SilverStripe\Core\Injector\Injector: factory: SilverStripe\Core\Cache\CacheFactory constructor: namespace: "s3Cache" + disable-container: true --- Name: silverstripes3-flysystem Only: