From fcd00be62c2a94d2ace011d65f9dc231fa51bbe3 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 14 Nov 2013 15:37:28 +0100 Subject: [PATCH] [FIX] Do not cache admin panel query for setting updates --- public/include/classes/statistics.class.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index b8d3c4b3..4f9e0278 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -356,11 +356,10 @@ class Statistics extends Base { /** * Admin panel specific query - * @return data array invlid and valid shares for all accounts + * @return data array User settings and shares **/ public function getAllUserStats($filter='%') { $this->debug->append("STA " . __METHOD__, 4); - if ($this->getGetCache() && $data = $this->memcache->get(__FUNCTION__ . $filter)) return $data; $stmt = $this->mysqli->prepare(" SELECT a.id AS id, @@ -381,8 +380,7 @@ class Statistics extends Base { $row['shares'] = $this->getUserShares($row['id']); $aUsers[] = $row; } - // Also cache this - return $this->memcache->setCache(__FUNCTION__ . $filter, $aUsers); + return $aUsers; } return $this->sqlError(); }