From d3935c314d18ab712c4a1c7c38aa9da76a5f8daf Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 28 Jan 2024 05:03:55 +0200 Subject: [PATCH] remove cache from post method as contain var data --- src/controller/room.php | 46 ----------------------------------------- 1 file changed, 46 deletions(-) diff --git a/src/controller/room.php b/src/controller/room.php index f61377b..03b66c2 100644 --- a/src/controller/room.php +++ b/src/controller/room.php @@ -347,30 +347,6 @@ class Room ?int $cache = 31104000 ): ?string { - // Check for cache - $result = $this->_memory->get( - [ - __METHOD__, - $data, - $field - ] - ); - - $time = $this->_memory->get( - [ - __METHOD__, - $data, - $field, - 'time' - ] - ); - - // Cache exists - if ($result && $time) - { - return $result; - } - // Skip values with meta keys if (str_starts_with($data['key'], '_')) { @@ -552,28 +528,6 @@ class Room ) ); - // Cache results - $this->_memory->set( - [ - __METHOD__, - $data, - $field - ], - $result, - $cache + time() - ); - - $this->_memory->set( - [ - __METHOD__, - $data, - $field, - 'time' - ], - $time, - $cache + time() - ); - return $result; }