diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-05-13 17:38:42 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-05-13 17:38:42 +0000 |
commit | 0d54577a9fc46cb7ba97b2d25cf18bec84a09e72 (patch) | |
tree | 5cbc1bdd4bab6267d8a1224c635708bf25d8ba3f /includes/module.inc | |
parent | 2350fda4dcb9d5df8df6754a531aab1fb37fe776 (diff) | |
download | brdo-0d54577a9fc46cb7ba97b2d25cf18bec84a09e72.tar.gz brdo-0d54577a9fc46cb7ba97b2d25cf18bec84a09e72.tar.bz2 |
- Patch #256579 by justinrandell: registry performance optimizations.
Diffstat (limited to 'includes/module.inc')
-rw-r--r-- | includes/module.inc | 4 |
1 files changed, 1 insertions, 3 deletions
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])) { |