update get_details fn for new template caching