Skip to content
Permalink
Browse files

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 54bcc7d6b695e6a0bc03cfe30a1f691798031ba1
Showing with 6 additions and 0 deletions.
  1. +6 −0 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);

0 comments on commit 54bcc7d

Please sign in to comment.
You can’t perform that action at this time.