Adding caching to content blocks