[wp-trac] [WordPress Trac] #37696: WP_Comment_Query looses sql_clauses with Object Cache

WordPress Trac noreply at wordpress.org
Thu Aug 18 19:17:13 UTC 2016


#37696: WP_Comment_Query looses sql_clauses with Object Cache
-------------------------------------+---------------------------
 Reporter:  Rarst                    |       Owner:  boonebgorges
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  4.6.1
Component:  Comments                 |     Version:  4.6
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------------

Comment (by boonebgorges):

 Replying to [comment:9 dd32]:
 > Caches evict data at different rates, the cached content may be evicted
 before the expiry, only half the caches related to a bit of code might get
 evicted at that point in time and others will live on for another year.
 Caches evict data based on key size, hit rate, usage, how full the
 underlying bucket it's in is, and seemingly sometimes `rand(0,1)`.
 > In other words; No code should expect a cached value to exist, even if
 another piece of data stored at the same time still exists there, "It
 doesn't exist unless it's in my hands" (or variable as it may be).

 Thanks @dd32. This confirms the strategy in [attachment:37696.diff].

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37696#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list