added caching of already rendered templates to the templatecache for
better performance