parent
f793e15f61
commit
0d367697e0
@ -53,7 +53,9 @@ class StatsCache {
|
|||||||
if (empty($expiration))
|
if (empty($expiration))
|
||||||
$expiration = $this->config['memcache']['expiration'] + rand( -$this->config['memcache']['splay'], $this->config['memcache']['splay']);
|
$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);
|
$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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user