From f0cceb2a4d59163a8b9c8599a67bc0d9bd5176b5 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 27 Jan 2024 11:04:16 +0200 Subject: [PATCH] add remote namespaces cache --- src/controller/room.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/controller/room.php b/src/controller/room.php index e3e4ead..6fcc4f9 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -537,7 +537,7 @@ class Room ) ); - // Check for cached results + // Cache results $this->_memory->set( [ __METHOD__, @@ -851,6 +851,15 @@ class Room { if ($record['key'] == '_KEVA_NS_') { + + $this->_memory->set( + [ + __METHOD__, + $namespace + ], + $record['value'] + ); + return $record['value']; } }