added caching to partials