[IMPROVED] Skip contrib shares until cache available

* Will help larger pools
* Will fallback to SQL if memcache is disabled
This commit is contained in:
Sebastian Grewe 2014-02-06 14:38:38 +01:00
parent c8fbc369cf
commit baaf8bf6eb

View File

@ -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,