From 821d0bee194b4b2b8d5fdb12e20e289208cbc7a5 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Tue, 30 Jul 2024 20:36:29 -0400 Subject: [PATCH] feat: Purging collection cache --- src/Appwrite/Migration/Version/V21.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Appwrite/Migration/Version/V21.php b/src/Appwrite/Migration/Version/V21.php index 2add928d4a..af2d86a2ba 100644 --- a/src/Appwrite/Migration/Version/V21.php +++ b/src/Appwrite/Migration/Version/V21.php @@ -195,6 +195,7 @@ class V21 extends Migration try { $this->projectDB->updateAttribute($bucketId, 'metadata', size: 75000); + $this->projectDB->purgeCachedCollection($bucketId); } catch (\Throwable $th) { Console::warning("'bucketId' from {$bucketId}: {$th->getMessage()}"); }