[wp-trac] [WordPress Trac] #55270: Option can_compress_scripts not autoload causing extra DB query on every request

WordPress Trac noreply at wordpress.org
Wed May 24 17:33:42 UTC 2023


#55270: Option can_compress_scripts not autoload causing extra DB query on every
request
--------------------------------+---------------------------
 Reporter:  RavanH              |       Owner:  spacedmonkey
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  6.3
Component:  Options, Meta APIs  |     Version:
 Severity:  minor               |  Resolution:  fixed
 Keywords:  has-patch commit    |     Focuses:  performance
--------------------------------+---------------------------
Changes (by spacedmonkey):

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


Comment:

 In [changeset:"55854" 55854]:
 {{{
 #!CommitTicketReference repository="" revision="55854"
 Options, Meta APIs: Change the option can_compress_scripts to be
 autoloaded.

 Ensure that the option `can_compress_scripts` is autoloaded on single
 sites, as this option is used in all requests. This change saves one
 database query per page request.

 Props RavanH, spacedmonkey, costdev, azaozz, flixos90.
 Fixes #55270.
 }}}

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


More information about the wp-trac mailing list