[BUGFIX] Template cache not flushed for partials and layouts
When modifying files in the Partials and Layout folders, the
template cache isn't flushed automatically in development
context like it is when modifying files in the Templates folder.
Releases: master, 2.2, 2.1