Skip to content
Permalink
Browse files

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

Closes #7559
  • Loading branch information...
rchavik committed Oct 16, 2015
1 parent bc97754 commit c1b6f89b2359ca31020c5030f93d18bcdc007758
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Cake/Cache/Engine/RedisEngine.php
@@ -113,6 +113,11 @@ public function write($key, $value, $duration) {
if (!is_int($value)) {
$value = serialize($value);
}
if (!$this->_Redis->isConnected()) {
$this->_connect();
}
if ($duration === 0) {
return $this->_Redis->set($key, $value);
}

0 comments on commit c1b6f89

Please sign in to comment.
You can’t perform that action at this time.