[wp-trac] [WordPress Trac] #22223: Potential for post cache corruption since r21735

WordPress Trac noreply at wordpress.org
Fri Oct 19 00:36:57 UTC 2012


#22223: Potential for post cache corruption since r21735
--------------------------+------------------
 Reporter:  ryan          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Cache         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by ryan):

 Replying to [comment:1 scribu]:
 > Famous last words: we could just remove the `wp_cache_add()` call.

 I've been thinking the same. If the post came from a previous get_post(),
 from WP_Query, or from another core function it will already be cached. If
 it didn't come from a core function it is very likely to be something we
 don't want to cache.

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


More information about the wp-trac mailing list