id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 55592,Prime caches for featured images in post rest api controller,spacedmonkey,spacedmonkey,"In the post api controller, if the post type supports thumbnails, this results a query to be run for each post's thumbnail. For a REST API request with 100 posts in it, this can result in lots of queries. In core there is already a function called `update_post_thumbnail_cache`, used to prime post thumbnails. However, this does not seem to be fired here. A simple fix would be to fire `update_post_thumbnail_cache` in the post controller. ",enhancement,closed,normal,6.1,REST API,4.2,normal,fixed,has-patch commit has-unit-tests has-dev-note,,"rest-api, performance"