summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2013-07-24 20:22:01 +0200
committerAndrey Andreev <narf@devilix.net>2013-07-24 20:22:01 +0200
commit28769988ee2a86e2d8c1863690355dc6bf368666 (patch)
tree56139a0d382a3a4f975500adeb48c67ced61eae2 /system
parentcd920b169f0c9beb8dc413837f3832f22d2a096a (diff)
parent516527c1dc03de4192966c79086d4ca8eaacc77c (diff)
Merge pull request #2555 from refringe/develop
Cache Driver - Backup Never Loaded
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cache/Cache.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/system/libraries/Cache/Cache.php b/system/libraries/Cache/Cache.php
index e1089f755..537897eaf 100644
--- a/system/libraries/Cache/Cache.php
+++ b/system/libraries/Cache/Cache.php
@@ -106,7 +106,7 @@ class CI_Cache extends CI_Driver_Library {
isset($config['key_prefix']) && $this->key_prefix = $config['key_prefix'];
- if (isset($config['backup']) && in_array('cache_'.$config['backup'], $this->valid_drivers))
+ if (isset($config['backup']) && in_array($config['backup'], $this->valid_drivers))
{
$this->_backup_driver = $config['backup'];
}
@@ -123,6 +123,7 @@ class CI_Cache extends CI_Driver_Library {
else
{
// Backup is supported. Set it to primary.
+ log_message('debug', 'Cache adapter "'.$this->_adapter.'" is unavailable. Falling back to "'.$this->_backup_driver.'" backup adapter.');
$this->_adapter = $this->_backup_driver;
}
}