Latte cache invalidation bug

3 years ago

Pavel Janda
Member | 805
+
0
-

Latte config.neon section before:

latte:
    macros:
        - Somewhere\Utils\Macros

After a couple weeks we moved the class under different namespace:

latte:
    macros:
        - Else\Utils\Macros

Tracy reports: “Class ‘Somewhere\Utils\Macros’ not found”. Deleting Latte cache files helped.

3 years ago

Felix
Nette Core | 902
+
0
-

It's oukey. Macros are compiled, so you have to remove templates.

3 years ago

Pavel Janda
Member | 805
+
0
-

Yes, the solution is pretty straightforward, but that doesn't mean Latte behaves correctly (not behaves at all).