[wp-trac] [WordPress Trac] #57502: Add object cache to wp_get_global_settings()

WordPress Trac noreply at wordpress.org
Fri Jan 27 22:12:51 UTC 2023


#57502: Add object cache to wp_get_global_settings()
-------------------------------------------------+-------------------------
 Reporter:  oandregal                            |       Owner:
                                                 |  hellofromTonya
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests gutenberg-  |     Focuses:
  merge                                          |  performance
-------------------------------------------------+-------------------------
Changes (by flixos90):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55155" 55155]:
 {{{
 #!CommitTicketReference repository="" revision="55155"
 Editor: Use a non-persistent object cache in `wp_get_global_settings()`.

 This changeset is part of a greater effort to enhance the caching strategy
 for `theme.json` based data. Similar to [55138] and [55148], the cache is
 currently ignored when `WP_DEBUG` is on to avoid interrupting the theme
 developer's workflow.

 This addition of a non-persistent cache results in a significant
 performance improvement for the overall load time of WordPress, with the
 Server-Timing load metric being ~8% faster and Time to First Byte being
 25+% faster than before.

 Props oandregal, spacedmonkey, hellofromtonya, flixos90, azaozz, aristath.
 Fixes #57502.
 }}}

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


More information about the wp-trac mailing list