[wp-trac] [WordPress Trac] #20236: Improper testing of cache retrievals causes wasted queries.

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 19 19:09:05 UTC 2012


#20236: Improper testing of cache retrievals causes wasted queries.
--------------------------+------------------
 Reporter:  andy          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Cache         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by ryan):

 In [20216]:
 {{{
 #!CommitTicketReference repository="" revision="20216"
 Don't generate a query when the all_page_ids cache is an empty array. An
 empty array is a valid cache value when no pages are present. Avoids a
 useless query for sites with no pages. Props andy. see #20236
 }}}

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


More information about the wp-trac mailing list