Opened 2 years ago
Closed 21 months ago
#57836 closed enhancement (duplicate)
Make `can_compress_scripts` option autoload.
Reported by: | spacedmonkey | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.8 |
Component: | Options, Meta APIs | Keywords: | |
Focuses: | performance | Cc: |
Description
The can_compress_scripts
option is loaded in script_concat_settings
function. This function is called on every page request. This option should be autoloaded, as it currently requests another database request to the option.
The reason why this option is not autoloaded, when the option is saved it calls update_site_option
, which fallbacks to calling add_site_option
and
$result = add_option( $option, $value, '', 'no' );
Change History (2)
Note: See
TracTickets for help on using
tickets.
Makes sense to me, one less db query sounds good.