From a13bad5890cd45536dd8e01cab43290acf70c23a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 10 Jun 2009 16:14:49 +0000 Subject: - Patch #449198 by justinrandell: documentation update. --- includes/registry.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'includes/registry.inc') diff --git a/includes/registry.inc b/includes/registry.inc index 89de42356..8efaf0f98 100644 --- a/includes/registry.inc +++ b/includes/registry.inc @@ -13,10 +13,7 @@ * * Drupal maintains an internal registry of all functions or classes in the * system, allowing it to lazy-load code files as needed (reducing the amount - * of code that must be parsed on each request). The list of included files is - * cached per menu callback for subsequent loading by the menu router. This way, - * a given page request will have all the code it needs but little else, minimizing - * time spent parsing unneeded code. + * of code that must be parsed on each request). */ /** @@ -73,7 +70,6 @@ function _registry_rebuild() { // list can then be added to the list of files that the registry will parse, // or modify attributes of a file. drupal_alter('registry_files', $files, $modules); - foreach (registry_get_parsed_files() as $filename => $file) { // Add the md5 to those files we've already parsed. if (isset($files[$filename])) { @@ -81,7 +77,7 @@ function _registry_rebuild() { } else { // Flush the registry of resources in files that are no longer on disc - // or don't belong to installed modules. + // or are in files that no installed modules require to be parsed. db_delete('registry') ->condition('filename', $filename) ->execute(); -- cgit v1.2.3