From baaf8bf6eb4bd9cdc6f584e4a036ff3ca45d5e96 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 6 Feb 2014 14:38:38 +0100 Subject: [PATCH] [IMPROVED] Skip contrib shares until cache available * Will help larger pools * Will fallback to SQL if memcache is disabled --- public/include/classes/statistics.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index 5f746e8f..a9696d35 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -670,7 +670,9 @@ class Statistics extends Base { return $data_new; } } - // No cached data, fallback to SQL and cache in local cache + // No cached data, fallback to SQL ONLY if we don't use memcache + if ($this->config['memcache']['enabled']) + return false; $stmt = $this->mysqli->prepare(" SELECT a.username AS account,