[wp-trac] [WordPress Trac] #62126: Cache duplicate calls to WP_Theme_JSON::sanitize

WordPress Trac noreply at wordpress.org
Thu Sep 18 23:12:07 UTC 2025


#62126: Cache duplicate calls to WP_Theme_JSON::sanitize
-------------------------------------------------+-------------------------
 Reporter:  josephscott                          |       Owner:  pbearne
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.9
Component:  General                              |     Version:  5.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-refresh has-unit-    |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------

Comment (by westonruter):

 When I'm looking at the impact of this change, I see that in the Twenty
 Twenty-Five theme, there are 36 total calls to the `sanitize()` method. Of
 those 36, just a third (12) are able to use the cache whereas two thirds
 (24) do not. This seems like a pretty poor cache HIT rate. Is something
 not right?

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


More information about the wp-trac mailing list