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 147e265 commit 3e14b3dCopy full SHA for 3e14b3d
src/Bridges/ApplicationLatte/TemplateFactory.php
@@ -69,7 +69,9 @@ public function createTemplate(UI\Control $control = NULL)
69
}
70
71
array_unshift($latte->onCompile, function ($latte) use ($control, $template) {
72
- $latte->getCompiler()->addMacro('cache', new Nette\Bridges\CacheLatte\CacheMacro($latte->getCompiler()));
+ if ($this->cacheStorage) {
73
+ $latte->getCompiler()->addMacro('cache', new Nette\Bridges\CacheLatte\CacheMacro($latte->getCompiler()));
74
+ }
75
UIMacros::install($latte->getCompiler());
76
if (class_exists(Nette\Bridges\FormsLatte\FormMacros::class)) {
77
Nette\Bridges\FormsLatte\FormMacros::install($latte->getCompiler());
0 commit comments