in the event of a cache-write error include the engine name

Especially if the engine is a variable, it's important to know which
engine had a problem writing to the cache
This commit is contained in:
AD7six 2011-04-17 11:44:46 +02:00
parent 65121a4292
commit eb66cd352e

View file

@ -298,7 +298,12 @@ class Cache {
self::set(null, $config);
if ($success === false && $value !== '') {
trigger_error(
__d('cake_dev', "%s cache was unable to write '%s' to cache", $config, $key),
__d('cake_dev',
"%s cache was unable to write '%s' to %s cache",
$config,
$key,
self::$_engines[$config]->settings['engine']
),
E_USER_WARNING
);
}