summaryrefslogtreecommitdiff
path: root/includes/registry.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-11-10 22:06:09 +0000
committerDries Buytaert <dries@buytaert.net>2009-11-10 22:06:09 +0000
commit3ccb55f2bd99a008577214296c17d2cf060874b5 (patch)
treedd65e92d7a254d5e5d9fff5e05b5d0da496a797f /includes/registry.inc
parent0629cfa95750270261f429880cb98974f790aa41 (diff)
downloadbrdo-3ccb55f2bd99a008577214296c17d2cf060874b5.tar.gz
brdo-3ccb55f2bd99a008577214296c17d2cf060874b5.tar.bz2
- Patch #627338 by catch: add a cache_bootstrap() bin for better performance/scalability.
Diffstat (limited to 'includes/registry.inc')
-rw-r--r--includes/registry.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/includes/registry.inc b/includes/registry.inc
index 2bc98e0b1..be7154851 100644
--- a/includes/registry.inc
+++ b/includes/registry.inc
@@ -83,7 +83,7 @@ function _registry_rebuild() {
$unchanged_resources = array();
$lookup_cache = array();
- if ($cache = cache_get('lookup_cache', 'cache_registry')) {
+ if ($cache = cache_get('lookup_cache', 'cache_bootstrap')) {
$lookup_cache = $cache->data;
}
foreach ($lookup_cache as $key => $file) {
@@ -96,12 +96,10 @@ function _registry_rebuild() {
module_implements('', FALSE, TRUE);
_registry_check_code(REGISTRY_RESET_LOOKUP_CACHE);
- cache_clear_all('*', 'cache_registry', TRUE);
-
// We have some unchanged resources, warm up the cache - no need to pay
// for looking them up again.
if (count($unchanged_resources) > 0) {
- cache_set('lookup_cache', $unchanged_resources, 'cache_registry');
+ cache_set('lookup_cache', $unchanged_resources, 'cache_bootstrap');
}
}