Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@timglabisch
Copy link

if you use the Zend_View_Helper_Action for dispatching recursive the Pimcore_Controller_Action_Helper_ViewRenderer will re-add all template paths. Everytime pimcore try to include all the files. For example we had ~300 recursive calls, pimcore needs around 90 Seconds (i think around 300.000 includes) to deliver the page.

this pull request should fix this issue.

to reproduce

an Action:

 public function fooAction() {
  if(!$this->_getParam('inkr'))
   return die();

 $inkr = $this->_getParam('inkr');
 $this->view->inkr =  --$inkr;
}

and a view

   if($this->inkr)
      echo $this->action('foo', 'default', null, array('inkr' => $this->inkr));

@brusch brusch merged this pull request into pimcore:master Feb 24, 2012
brusch pushed a commit that referenced this pull request Feb 24, 2012
performance issue on recursive templates

git-svn-id: http://www.pimcore.org/svn/pimcore/private/core/trunk@1276 1f8fe7d8-47f0-464c-8d0a-336f4953ab05
brusch pushed a commit that referenced this pull request Feb 24, 2012
brusch pushed a commit that referenced this pull request May 22, 2013
performance issue on recursive templates

git-svn-id: http://www.pimcore.org/svn/pimcore/private/core/trunk@1276 1f8fe7d8-47f0-464c-8d0a-336f4953ab05
brusch pushed a commit that referenced this pull request May 22, 2013
@abdelrhmanyosry abdelrhmanyosry mentioned this pull request Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants