Skip to content
Permalink
Browse files

the cache class shouldn't care about engine config

  • Loading branch information...
AD7six committed Nov 20, 2013
1 parent a1ba28a commit 94f5e07bbd31d92399d5d9c59f413be218bca7de
Showing with 5 additions and 10 deletions.
  1. +5 −10 Cake/Cache/Cache.php
@@ -202,8 +202,7 @@ public static function write($key, $value, $config = 'default') {
return false;
}
$config = $engine->config();
$success = $engine->write($config['prefix'] . $key, $value, $config['duration']);
$success = $engine->write($key, $value);
if ($success === false && $value !== '') {
trigger_error(
__d('cake_dev',
@@ -246,8 +245,7 @@ public static function read($key, $config = 'default') {
return false;
}
$config = $engine->config();
return $engine->read($config['prefix'] . $key);
return $engine->read($key);
}
/**
@@ -270,8 +268,7 @@ public static function increment($key, $offset = 1, $config = 'default') {
return false;
}
$config = $engine->config();
return $engine->increment($config['prefix'] . $key, $offset);
return $engine->increment($key, $offset);
}
/**
@@ -294,8 +291,7 @@ public static function decrement($key, $offset = 1, $config = 'default') {
return false;
}
$config = $engine->config();
return $engine->decrement($config['prefix'] . $key, $offset);
return $engine->decrement($key, $offset);
}
/**
@@ -326,8 +322,7 @@ public static function delete($key, $config = 'default') {
return false;
}
$config = $engine->config();
return $engine->delete($config['prefix'] . $key);
return $engine->delete($key);
}
/**

0 comments on commit 94f5e07

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