Latte cache invalidation bug

4 years ago

Pavel Janda
Backer | 866
+
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.

4 years ago

Felix
Nette Core | 955
+
0
-

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

4 years ago

Pavel Janda
Backer | 866
+
0
-

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