Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 59a7cee89d19fde2aa9dc9e676123b2c53c46981 1 parent 040f94c
Mark Story markstory authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 cake/libs/cache.php
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 {
Please sign in to comment.
Something went wrong with that request. Please try again.