[wp-trac] [WordPress Trac] #57498: Unnecessary writes to cache in `WP_Query`

WordPress Trac noreply at wordpress.org
Wed Jan 18 23:42:17 UTC 2023


#57498: Unnecessary writes to cache in `WP_Query`
--------------------------+--------------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1.2
Component:  Query         |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+--------------------------

Comment (by OllieJones):

 FWIW, the persistent cache implementations don't push through unchanged
 values to the object store. They compare first ( serialize($old) !==
 serialize($new) ) That's not a super-cheap operation, but it saves object
 store traffic.

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


More information about the wp-trac mailing list