diff --git a/memcache.module b/memcache.module index 785fe716c94d2ac8428f5a566c22733f31bcca19..d3307d9700608d5c8933a7a9e0e61178afa54179 100644 --- a/memcache.module +++ b/memcache.module @@ -20,7 +20,6 @@ function memcache_perm() { */ function memcache_shutdown() { global $user, $_memcache_statistics; - drupal_add_js(drupal_get_path('module', 'memcache'). '/memcache.js'); $output = ''; @@ -33,6 +32,7 @@ function memcache_shutdown() { } if (user_access('access memcache statistics')) { + drupal_add_js(drupal_get_path('module', 'memcache'). '/memcache.js'); $stats = array(); foreach ($_memcache_statistics as $stat => $val) { $stats[] = "$stat: ". theme('item_list', $val);