Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Every unused module generate sql query in drupal_get_path('module', $module);
pls, filter $overrides variable
function omega_css_alter(&$css) {
...
$overrides = array(
'aggregator' => array(
...
$overrides = array_intersect_key($overrides, module_list());
Comments
Comment #1
Punk_UnDeaDComment #2
Punk_UnDeaDComment #3
fubhy CreditAttribution: fubhy commentedI don't see the problem? How does each disabled module generate a db query and where? The code you showed here does not.
Comment #4
Punk_UnDeaDdrupal_get_path('module', $module) for disabled module generate a db query every time
drupal_get_path call drupal_get_filename
https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_ge...
drupal_get_filename call db_query()
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/drupal...
Comment #5
fubhy CreditAttribution: fubhy commentedOkay, that sucks. We should fix that.
Comment #6
fubhy CreditAttribution: fubhy commentedComment #8
fubhy CreditAttribution: fubhy commented