[wp-trac] [WordPress Trac] #21595: get_blog_post() and get_blog_permalink() create duplicate caches that aren't invalidated

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 27 16:22:46 UTC 2012


#21595: get_blog_post() and get_blog_permalink() create duplicate caches that
aren't invalidated
-------------------------------------+---------------------
 Reporter:  ryan                     |       Owner:  ryan
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  3.5
Component:  Cache                    |     Version:  3.4.1
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |
-------------------------------------+---------------------
Changes (by ryan):

 * owner:   => ryan
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [21628]:
 {{{
 #!CommitTicketReference repository="" revision="21628"
 Use switch_to_blog()/restore_current_blog() in get_blog_post() and
 get_blog_permalink(). Eliminate the duplicate caching in these functions.
 Return WP_Post from get_blog_post(). Update phpdoc. Remove global-posts
 cache invalidation. Props jondavidjohn fixes #21595
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21595#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list