Skip to content
Browse files

Adding fix for tests in previous commit. Fixes #596

  • Loading branch information...
1 parent 1fee86f commit 5ed5c54a61386f286fabd711f37dfe6616e8c57a @markstory markstory committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 cake/libs/cache.php
View
6 cake/libs/cache.php
@@ -175,7 +175,10 @@ function set($settings = array(), $value = null) {
return false;
}
- $engine = $_this->__config[$_this->__name]['engine'];
+ $engine = $_this->__config[$_this->__name]['engine'];
+ if (isset($settings['engine'])) {
+ $engine = $settings['engine'];
+ }
if (!empty($settings)) {
$_this->__reset = true;
@@ -289,6 +292,7 @@ function read($key, $config = null) {
if (!$key = $_this->_Engine[$engine]->key($key)) {
return false;
}
+
$success = $_this->_Engine[$engine]->read($settings['prefix'] . $key);
if ($config !== null && $config !== $_this->__name) {

0 comments on commit 5ed5c54

Please sign in to comment.
Something went wrong with that request. Please try again.