[wp-trac] [WordPress Trac] #59592: Store last changed value in key instead of using it as a salt for query caches

WordPress Trac noreply at wordpress.org
Fri Aug 22 22:17:27 UTC 2025


#59592: Store last changed value in key instead of using it as a salt for query
caches
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  spacedmonkey
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.9
Component:  Cache API                            |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-dev-  |     Focuses:
  note                                           |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 The previous approach depended on the object cache backend automatically
 evicting stale keys, which is not always enabled by default (e.g. in Redis
 or Valkey). Even when eviction occurred, it still led to a large number of
 cache keys being generated. The new approach avoids this issue by reusing
 keys instead.

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


More information about the wp-trac mailing list