[FIX] Wait for global cache data, don't run queries

This commit is contained in:
Sebastian Grewe 2014-02-26 09:42:49 +01:00
parent 78619c1427
commit d750e81b02

View File

@ -521,6 +521,7 @@ class Statistics extends Base {
$retData['avgsharediff'] = $data['data'][$account_id]['avgsharediff'];
return $retData;
}
return array('hashrate' => (float)0, 'sharerate' => (float)0, 'avgsharediff' => (float)0);
}
if ($this->getGetCache() && $data = $this->memcache->get(__FUNCTION__ . $account_id)) return $data;
$stmt = $this->mysqli->prepare("