add template caching/precompile to server environments
Merge pull request #1754 from onepercentclub/feature/fix-template-cache

Add template caching/precompile to server environments