Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update View.php
Optimization in checking the elementCache settings, when the settings have already been previously
  • Loading branch information
DiogoRMax committed Sep 24, 2017
1 parent 8dea5d8 commit 54bcc7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/View/View.php
Expand Up @@ -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);

Expand Down

0 comments on commit 54bcc7d

Please sign in to comment.