diff --git a/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php b/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php index ed566b44a51..60f4fc76172 100644 --- a/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php +++ b/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php @@ -14,6 +14,7 @@ use Neos\Flow\Annotations as Flow; use Neos\Flow\Aop\JoinPointInterface; use Neos\Cache\Frontend\VariableFrontend; +use Neos\Fusion\View\FusionView; /** * @Flow\Scope("singleton") @@ -34,7 +35,9 @@ class FusionCachingAspect */ public function cacheGetMergedFusionObjectTree(JoinPointInterface $joinPoint) { - $fusionPathPatterns = $joinPoint->getProxy()->getFusionPathPatterns(); + /** @var FusionView $view */ + $view = $joinPoint->getProxy(); + $fusionPathPatterns = $view->getFusionPathPatterns(); $cacheIdentifier = md5(serialize($fusionPathPatterns)); if ($this->fusionCache->has($cacheIdentifier)) {