diff --git a/src/View/View.php b/src/View/View.php index 267b93b6694..58f25e1f4c4 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -1488,6 +1488,12 @@ protected function _paths($plugin = null, $cached = true) */ protected function _elementCache($name, $data, $options) { + if (isset($options['cache']['key'], $options['cache']['config'])) { + $cache = $options['cache']; + $cache['key'] = 'element_' . $cache['key']; + return $cache; + } + $plugin = null; list($plugin, $name) = $this->pluginSplit($name);