Commit 50aabd70 authored by robertDouglass's avatar robertDouglass

moving drupal_add_js to the shutdown function gets rid of the bootstrap...

moving drupal_add_js to the shutdown function gets rid of the bootstrap problem for anonymous users when page caching is turned on.
parent 0ab98683
......@@ -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 = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment