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

WordPress Trac noreply at wordpress.org
Thu May 18 12:01:18 UTC 2023


#55270: Option can_compress_scripts not autoload causing extra DB query on every
request
---------------------------+---------------------------
 Reporter:  RavanH         |       Owner:  spacedmonkey
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  6.3
Component:  Script Loader  |     Version:
 Severity:  minor          |  Resolution:
 Keywords:  has-patch      |     Focuses:  performance
---------------------------+---------------------------

Comment (by spacedmonkey):

 Replying to [comment:9 azaozz]:

 > Not so sure about the rest of the changes though (the `update_option()`
 vs. `update_site_option()`). They look like an enhancement of a unused
 feature that is going to be removed soon?

 But it is currently used right? It is used [https://github.com/WordPress
 /wordpress-develop/blob/bd53a88137d6a5cd83b243af38bbf10957e39ae1/src/wp-
 admin/admin-footer.php#L108-L112 here]. Until #58302 is committed which
 maybe in a future release ( if ever ), then we should fix what have.

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


More information about the wp-trac mailing list