activate template caching