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

Punk_UnDeaD’s picture

Issue summary: View changes
Punk_UnDeaD’s picture

Issue summary: View changes
fubhy’s picture

Status: Active » Closed (works as designed)

I don't see the problem? How does each disabled module generate a db query and where? The code you showed here does not.

Punk_UnDeaD’s picture

drupal_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...

fubhy’s picture

Okay, that sucks. We should fix that.

fubhy’s picture

Status: Closed (works as designed) » Active

  • fubhy committed 7d27277 on 7.x-4.x
    Issue #2413935: Filter unused module from $override in omega_css_alter.
    
fubhy’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.