From cbe64cbb630c916cc56d37f90f8c3aed30a4620c Mon Sep 17 00:00:00 2001
From: Alex Verbruggen <alexander.verbruggen@hp.com>
Date: Wed, 26 Dec 2012 13:18:02 +0100
Subject: [PATCH] Comment out caching to make masquerade form work

---
 admin_menu.module |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/admin_menu.module b/admin_menu.module
index 68dd27e..cbb3dc4 100644
--- a/admin_menu.module
+++ b/admin_menu.module
@@ -503,16 +503,16 @@ function admin_menu_output() {
 
     $content = drupal_render($content);
 
-    // Cache the menu for this user.
-    if ($cache_server_enabled) {
-      cache_set($cid, $content, 'cache_menu');
-    }
+//     // Cache the menu for this user.
+//     if ($cache_server_enabled) {
+//       cache_set($cid, $content, 'cache_menu');
+//     }
   }
 
-  // Store the new hash for this user.
-  if (!empty($_COOKIE['has_js'])) {
-    admin_menu_cache_set($cid, md5($content));
-  }
+//   // Store the new hash for this user.
+//   if (!empty($_COOKIE['has_js'])) {
+//     admin_menu_cache_set($cid, md5($content));
+//   }
 
   return $content;
 }

