Improved smarty caching configuration and automatic settings for
production and development