Merge pull request #1520 from MPOS/pool-hashrate-0

[FIX] Storing/showing wrong data from cache
This commit is contained in:
Sebastian Grewe 2014-01-21 06:26:02 -08:00
commit 23aa097672

View File

@ -53,7 +53,9 @@ class StatsCache {
if (empty($expiration))
$expiration = $this->config['memcache']['expiration'] + rand( -$this->config['memcache']['splay'], $this->config['memcache']['splay']);
$this->debug->append("Storing " . $this->config['memcache']['keyprefix'] . "$key with expiration $expiration", 3);
return $this->cache->set($this->config['memcache']['keyprefix'] . $key, $value, $expiration);
if ($this->cache->set($this->config['memcache']['keyprefix'] . $key, $value, $expiration))
return $value;
return false;
}
/**