From f990c1bc0b6714e3a7c58ce20b4615138714340f Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 27 Jan 2024 11:25:32 +0200 Subject: [PATCH] reset Room::posts cache on sending new post --- src/controller/room.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/controller/room.php b/src/controller/room.php index 1ed136a..fa7d6f2 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -311,6 +311,14 @@ class Room $session ); + // Reset post list cache for this room + $this->_memory->delete( + [ + '\Kevachat\Geminiapp\Controller\Room::posts', + $namespace + ] + ); + // Success return $txid; }