? use_static_cache.patch
Index: autoload.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/autoload/autoload.module,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 autoload.module
--- autoload.module	10 Jun 2010 05:39:38 -0000	1.1.2.9
+++ autoload.module	18 Jun 2010 03:04:39 -0000
@@ -38,7 +38,6 @@ function autoload_class($class) {
  *   The lookup table for what classes are stored where.
  */
 function autoload_get_lookup($reset = FALSE) {
-
   static $lookup;
 
   if (isset($lookup) && !$reset) {
@@ -46,7 +45,7 @@ function autoload_get_lookup($reset = FA
   }
 
   if (!$reset && ($cache = cache_get('autoload:')) && isset($cache->data)) {
-    return $cache->data;
+    $lookup = $cache->data;
   }
   else {
     // We need to manually call each module so that we can know which module
@@ -73,6 +72,6 @@ function autoload_get_lookup($reset = FA
 
     // Save the lookup table, then return it.
     cache_set('autoload:', $lookup);
-    return $lookup;
   }
+  return $lookup;
 }
