From 3ccb55f2bd99a008577214296c17d2cf060874b5 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 10 Nov 2009 22:06:09 +0000 Subject: - Patch #627338 by catch: add a cache_bootstrap() bin for better performance/scalability. --- includes/registry.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'includes/registry.inc') 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'); } } -- cgit v1.2.3