Skip to content

debug_kit Cache panel DebugEngine does not override add(), resulting in broken add operations to caches #1083

Description

When the Cache panel is enabled, the engine is replaced with a DebugEngine, which has an empty configuration. Calling add on this engine generates a warning on a missing prefix key and overall does nothing.

2026-08-13 14:22:44 warning: Undefined array key "prefix" in /Users/michele/fatturaelettronicapa/vendor/cakephp/cakephp/src/Cache/CacheEngine.php on line 373
Trace:
Cake\Error\ErrorTrap->handleError() /Users/michele/fatturaelettronicapa/vendor/cakephp/cakephp/src/Cache/CacheEngine.php, line 373
Cake\Cache\CacheEngine->_key() /Users/michele/fatturaelettronicapa/vendor/cakephp/cakephp/src/Cache/CacheEngine.php, line 304
Cake\Cache\CacheEngine->add() /Users/michele/fatturaelettronicapa/vendor/cakephp/cakephp/src/Cache/Cache.php, line 605
Cake\Cache\Cache::add() /Users/michele/fatturaelettronicapa/vendor/cakephp/queue/src/QueueManager.php, line 296
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions