Workaround for Cache::write() call from DboSource::__destruct()

Closes #7559
This commit is contained in:
Rachman Chavik 2015-10-16 08:45:56 +07:00
parent bc977544c5
commit c1b6f89b23

View file

@ -113,6 +113,11 @@ class RedisEngine extends CacheEngine {
if (!is_int($value)) {
$value = serialize($value);
}
if (!$this->_Redis->isConnected()) {
$this->_connect();
}
if ($duration === 0) {
return $this->_Redis->set($key, $value);
}