[wp-trac] [WordPress Trac] #11630: 0 is not a valid cache key for posts

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 28 19:03:59 UTC 2010


#11630: 0 is not a valid cache key for posts
-----------------------------------------------+----------------------------
 Reporter:  hakre                              |        Owner:  ryan    
     Type:  defect (bug)                       |       Status:  reopened
 Priority:  normal                             |    Milestone:  3.1     
Component:  Cache                              |      Version:  2.9     
 Severity:  normal                             |   Resolution:          
 Keywords:  has-patch reporter-feedback close  |  
-----------------------------------------------+----------------------------

Comment(by wpmuguru):

 Both 0 and '0' are valid array keys. The built in object cache uses
 isset() not empty() to determine if the requested object is stored in
 cache.

 Recommending close.

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


More information about the wp-trac mailing list