Skip to content
Permalink
Browse files

Adding a check for '' and failure. When trying to Cache '', FileEngin…

…e will return false. This shouldn't trigger an error inside Cache.
  • Loading branch information...
markstory committed Jul 25, 2010
1 parent 339fa29 commit a8b05c2fbc6920ceddf7ac2f5279807ff0041002
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/cache.php
@@ -270,7 +270,7 @@ public static function write($key, $value, $config = null) {
$success = self::$_engines[$config]->write($settings['prefix'] . $key, $value, $settings['duration']);
self::set();
if ($success === false) {
if ($success === false && $value !== '') {
trigger_error(
sprintf(__("%s cache was unable to write '%s' to cache", true), $config, $key),
E_USER_WARNING

0 comments on commit a8b05c2

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