[wp-trac] [WordPress Trac] #57625: WP_Query cache memory leak

WordPress Trac noreply at wordpress.org
Mon Feb 6 01:08:55 UTC 2023


#57625: WP_Query cache memory leak
--------------------------+------------------------------
 Reporter:  owi           |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Cache API     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------

Comment (by peterwilsoncc):

 I think this is a little of two things:

 * a configuration error on the persistent cache: I think setting a TTL or
 `maxmemory` and an eviction policy would fix OOM errors
 * using the last_changed times in WordPress isn't optimal

 The latter is difficult to resolve as not all persistent caches allow for
 items to be deleted by group or cache prefix and WordPress needs to
 account for that situation.

 For systems that do allow for bulk deletion of cache keys via group or
 prefix, I suspect there are some ways WordPress could optimise for this
 but will need to think it through a little and discuss with some experts.

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


More information about the wp-trac mailing list