[wp-trac] [WordPress Trac] #23167: Cache incrementors for get_pages

WordPress Trac noreply at wordpress.org
Thu Jan 10 21:38:26 UTC 2013


#23167: Cache incrementors for get_pages
----------------------------------------+------------------------
 Reporter:  nprasath002                 |       Owner:  westi
     Type:  enhancement                 |      Status:  reviewing
 Priority:  normal                      |   Milestone:  3.6
Component:  Cache                       |     Version:  3.5
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |
----------------------------------------+------------------------

Comment (by ryan):

 Looks like caching only IDs will be just fine since get_pages() calls
 update_post_cache(). This ensures the pages are cached should we do the
 same get_pages() query later in the same page load. On the next page load
 the cache is empty when there is no persistent cache so get_pages() does a
 db query and cache set. Query counts are looking fine so far in testing.

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


More information about the wp-trac mailing list