[wp-trac] [WordPress Trac] #49692: _prime_post_caches should not do anything if object cache is not running

WordPress Trac noreply at wordpress.org
Tue Mar 24 16:49:35 UTC 2020


#49692: _prime_post_caches should not do anything if object cache is not running
--------------------------+-----------------------------
 Reporter:  pcfreak30     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Cache API     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  performance   |
--------------------------+-----------------------------
 From what I can see

 {{{
 _prime_post_caches
 }}}

  does more harm than good when querying a large set of posts, and using
 the memory object cache.

 There should be a check with
 {{{
 wp_using_ext_object_cache
 }}}
  and possibly a filter to override the behavior so this only takes action
 when object cache is in use.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49692>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list