[wp-trac] [WordPress Trac] #14047: get_user_by() makes use of the cache even if it does not exists any longer

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 25 15:44:17 UTC 2010


#14047: get_user_by() makes use of the cache even if it does not exists any longer
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:                              
     Type:  defect (bug)  |      Status:  new                         
 Priority:  normal        |   Milestone:  3.1                         
Component:  General       |     Version:  2.9.2                       
 Severity:  normal        |    Keywords:  has-patch needs-testing gsoc
--------------------------+-------------------------------------------------

Comment(by hakre):

 Under certain circumstance the defensive development approach is good. But
 I do not think that in wordpress defensive programming is common sense.

 In this cache case for example, this will create overhead for 99.999% of
 all cases.

 With my patch I approach the problem from the other side to offer plugin
 or core developers the possibility to check for cahce existance (for
 example on shutdowns or so).

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


More information about the wp-trac mailing list