Latte cache behaviour in production environment 30/04/2015
This article was taken and translated from (paveljanda.com)[https://paveljanda.com].
Behaviour in dev mode In development mode, Latte is checking filemtime of each template file in each request. This is the reason why you don’t have to delete all files in the /temp/cache directory when modifying templates.
Behaviour in production mode In the production mode, it would slow the application down, hence the templates are once cached and when you make some changes to the template, the change is not applied to the result.
This article was taken and translated from (paveljanda.com)[https://paveljanda.com].
Behaviour in dev mode
In development mode, Latte is checking filemtime
of each template file in each request. This is the reason why you don’t have to delete all files in the /temp/cache
directory when modifying templates.
Behaviour in production mode
In the production mode, it would slow the application down, hence the templates are once cached and when you make some changes to the template, the change is not applied to the result. But maybe you need to check the changes in production mode:
services:
nette.latteFactory:
setup:
- setAutoRefresh(TRUE)
But keep in mind that from this time on, Latte will check each file in each request…