| 1 |
<?php |
<?php |
| 2 |
// $Id: module.inc,v 1.171 2009/11/10 22:06:09 dries Exp $ |
// $Id: module.inc,v 1.172 2009/11/11 17:04:47 dries Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 113 |
} |
} |
| 114 |
else { |
else { |
| 115 |
$bootstrap_list = db_query("SELECT name, filename FROM {system} WHERE status = 1 AND bootstrap = 1 AND type = 'module' ORDER BY weight ASC, name ASC")->fetchAllAssoc('name'); |
$bootstrap_list = db_query("SELECT name, filename FROM {system} WHERE status = 1 AND bootstrap = 1 AND type = 'module' ORDER BY weight ASC, name ASC")->fetchAllAssoc('name'); |
| 116 |
cache_set('bootstrap_modules', $bootstrap_list, 'cache'); |
cache_set('bootstrap_modules', $bootstrap_list, 'cache_bootstrap'); |
| 117 |
} |
} |
| 118 |
foreach ($bootstrap_list as $module) { |
foreach ($bootstrap_list as $module) { |
| 119 |
// Prime the drupal_get_filename() static cache to avoid subsequent |
// Prime the drupal_get_filename() static cache to avoid subsequent |
| 555 |
// optimized as tightly, and not doing so keeps the cache entry smaller. |
// optimized as tightly, and not doing so keeps the cache entry smaller. |
| 556 |
if (isset($implementations['#write_cache']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')) { |
if (isset($implementations['#write_cache']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')) { |
| 557 |
unset($implementations['#write_cache']); |
unset($implementations['#write_cache']); |
| 558 |
cache_set('module_implements', $implementations); |
cache_set('module_implements', $implementations, 'cache_bootstrap'); |
| 559 |
} |
} |
| 560 |
} |
} |
| 561 |
|
|