Skip to content
Snippets Groups Projects
Commit deacaa65 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #634240 by catch: fixed system_list() caching.

parent ffdcefa7
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -113,7 +113,7 @@ function system_list($type) {
}
else {
$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');
cache_set('bootstrap_modules', $bootstrap_list, 'cache');
cache_set('bootstrap_modules', $bootstrap_list, 'cache_bootstrap');
}
foreach ($bootstrap_list as $module) {
// Prime the drupal_get_filename() static cache to avoid subsequent
......@@ -555,7 +555,7 @@ function module_implements_write_cache() {
// optimized as tightly, and not doing so keeps the cache entry smaller.
if (isset($implementations['#write_cache']) && ($_SERVER['REQUEST_METHOD'] == 'GET' || $_SERVER['REQUEST_METHOD'] == 'HEAD')) {
unset($implementations['#write_cache']);
cache_set('module_implements', $implementations);
cache_set('module_implements', $implementations, 'cache_bootstrap');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment