diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-11-18 19:09:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-11-18 19:09:52 +0000 |
commit | deacaa6533bbfcc8666a8b4793fe133461d85d51 (patch) | |
tree | 2aeb470e2fb3648d1b62a12c28a242d98595fede | |
parent | ffdcefa710bef7e9dc616f3f6018ec296d8d2755 (diff) | |
download | brdo-deacaa6533bbfcc8666a8b4793fe133461d85d51.tar.gz brdo-deacaa6533bbfcc8666a8b4793fe133461d85d51.tar.bz2 |
- Patch #634240 by catch: fixed system_list() caching.
-rw-r--r-- | includes/module.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/module.inc b/includes/module.inc index 96c48b788..8df91dd5c 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -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'); } } |