From 0d54577a9fc46cb7ba97b2d25cf18bec84a09e72 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 13 May 2008 17:38:42 +0000 Subject: - Patch #256579 by justinrandell: registry performance optimizations. --- includes/module.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'includes/module.inc') diff --git a/includes/module.inc b/includes/module.inc index b7e8bb3e0..568a6da18 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -408,9 +408,7 @@ function module_implements($hook, $sort = FALSE, $refresh = FALSE) { $implementations = array(); } else if (!defined('MAINTENANCE_MODE') && empty($implementations)) { - if ($cache = cache_get('hooks', 'cache_registry')) { - $implementations = $cache->data; - } + $implementations = registry_get_hook_implementations_cache(); } if (!isset($implementations[$hook])) { -- cgit v1.2.3