diff --git a/system/src/Grav/Common/Twig/TwigEnvironment.php b/system/src/Grav/Common/Twig/TwigEnvironment.php index 357e94bce..6709ae334 100644 --- a/system/src/Grav/Common/Twig/TwigEnvironment.php +++ b/system/src/Grav/Common/Twig/TwigEnvironment.php @@ -40,6 +40,7 @@ class TwigEnvironment extends Environment return $name; } + // Avoid throwing an exception as it is really slow to handle. if (1 !== $count && !$this->getLoader()->exists($name)) { continue; }