Skip to content

Commit

Permalink
Merge pull request #291 from nussjustin/patch-1
Browse files Browse the repository at this point in the history
Avoid reparsing of layout XML when not necessary
  • Loading branch information
GordonLesti authored Mar 29, 2017
2 parents f0da16a + 0de3db2 commit fe3b531
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/code/community/Lesti/Fpc/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,7 @@ protected function _prepareLayout(
array $dynamicBlocks
)
{
$xml = simplexml_load_string(
$layout->getXmlString(),
Lesti_Fpc_Helper_Data::LAYOUT_ELEMENT_CLASS
);
$xml = $layout->getNode();
$cleanXml = simplexml_load_string(
'<layout/>',
Lesti_Fpc_Helper_Data::LAYOUT_ELEMENT_CLASS
Expand Down

0 comments on commit fe3b531

Please sign in to comment.