Make caching of thymeleaf templates optional (saves redeploying when developing templates)