diff -u b/core/includes/module.inc b/core/includes/module.inc --- b/core/includes/module.inc +++ b/core/includes/module.inc @@ -585,7 +585,7 @@ $parser = new Parser; $definitions = $parser->parse(file_get_contents($service_yaml_file)); if (isset($definitions['services'])) { - foreach ($definitions['services'] as $definition) { + foreach ($definitions['services'] as $id => $definition) { if (isset($definition['tags'])) { foreach ($definition['tags'] as $tag) { // This works for the default cache registration and even in some @@ -602,7 +602,7 @@ } } catch (Exception $e) { - // This is a best effort removal. At least we tried. + watchdog(WATCHDOG_ERROR, 'Failed to remove cache bin defined by the service %id.', array('%id' => $id)); } } }