We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a4b2cf commit 94ec03cCopy full SHA for 94ec03c
src/Bridges/ApplicationLatte/TemplateFactory.php
@@ -67,7 +67,9 @@ public function createTemplate(UI\Control $control = NULL)
67
}
68
69
array_unshift($latte->onCompile, function ($latte) use ($control, $template) {
70
- $latte->getCompiler()->addMacro('cache', new Nette\Bridges\CacheLatte\CacheMacro($latte->getCompiler()));
+ if ($this->cacheStorage) {
71
+ $latte->getCompiler()->addMacro('cache', new Nette\Bridges\CacheLatte\CacheMacro($latte->getCompiler()));
72
+ }
73
UIMacros::install($latte->getCompiler());
74
if (class_exists(Nette\Bridges\FormsLatte\FormMacros::class)) {
75
Nette\Bridges\FormsLatte\FormMacros::install($latte->getCompiler());
0 commit comments