Permalink
Browse files

Removing deprecated $config parameter handling. $config must be a str…

…ing that is the name of an existing cache config.
  • Loading branch information...
1 parent 040f94c commit 59a7cee89d19fde2aa9dc9e676123b2c53c46981 @markstory markstory committed Nov 14, 2009
Showing with 0 additions and 6 deletions.
  1. +0 −6 cake/libs/cache.php
View
@@ -240,12 +240,6 @@ function gc() {
function write($key, $value, $config = null) {
$_this =& Cache::getInstance();
- if (is_array($config)) {
- extract($config);
- } else if ($config && (is_numeric($config) || is_numeric($config[0]) || (isset($config[1]) && is_numeric($config[1])))) {
- $config = null;
- }
-
if ($config && isset($_this->__config[$config])) {
$settings = $_this->set($_this->__config[$config]);
} else {

0 comments on commit 59a7cee

Please sign in to comment.