[wp-trac] [WordPress Trac] #19726: Don't update the post_thumbnail_cache if the thumbnail is already cached
WordPress Trac
wp-trac at lists.automattic.com
Tue Jan 3 20:02:34 UTC 2012
#19726: Don't update the post_thumbnail_cache if the thumbnail is already cached
-------------------------+-----------------------------
Reporter: prettyboymp | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Performance | Version: 3.3
Severity: normal | Keywords:
-------------------------+-----------------------------
There is no reason to run the query in update_post_thumbnail_cache() if
all of the thumbnail posts are already cached. Before adding a post_id to
the thumb_ids array, cache should be checked.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19726>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list