summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Douglass2007-05-21 17:12:50 (GMT)
committerRobert Douglass2007-05-21 17:12:50 (GMT)
commit50aabd70dc8b97352f9a244d29029cd656dbba79 (patch)
treede79236998814b30c114578cec8a5ab09fb2f996
parent0ab98683e5f49136c8609f6125198dcb1bff53f1 (diff)
moving drupal_add_js to the shutdown function gets rid of the bootstrap problem for anonymous users when page caching is turned on.
-rw-r--r--memcache.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/memcache.module b/memcache.module
index 5253f9b..785fe71 100644
--- a/memcache.module
+++ b/memcache.module
@@ -6,7 +6,6 @@ function memcache_init() {
// update.php relies on standard error handler
}
else {
- drupal_add_js(drupal_get_path('module', 'memcache'). '/memcache.js');
register_shutdown_function('memcache_shutdown');
}
}
@@ -21,6 +20,7 @@ function memcache_perm() {
*/
function memcache_shutdown() {
global $user, $_memcache_statistics;
+ drupal_add_js(drupal_get_path('module', 'memcache'). '/memcache.js');
$output = '';