Implemented BlockCache and TemplateCache.