mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
parent
65121a4292
commit
eb66cd352e
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue