contao/core — Issue #3676: Filecache should be invalidaded upon actions that are sure to make it invalid
Author: Ruudt
Created: 2011-12-07 08:05:17+00:00
State: open

Certain actions make the filecache Contao currently uses invalid. For example cloning a template from the standard templates into the TL_ROOT/templates folder. After this action the cloned file will not be used even though this is likely to be the correct action. If the user changes the filename then the filecache will update anyway.

Filecache is meant to save resources, and it does. But it cannot be turned off and it is annoying when building a website when many new files are created. I have to visit maintenance every time and clear system/tmp.

Cache should be emptied when it is sure to be invalid. (even if that is "possibly not invalid anymore within 1 minute")

The same thing goes for installing or updating extensions. I had some problems with .tpl changing into .html5 templates but keeping .tpl for backwards compatibility. But this is a minor issue.