diff --git a/autologout.js b/autologout.js index 16eabdd..a173995 100644 --- a/autologout.js +++ b/autologout.js @@ -282,6 +282,10 @@ $dirty_bit.val('1'); } + if (!localSettings.refresh_only) { + // Request immediately if authcache is enabled. + localSettings.authcache_enabled && init(); + } } }; })(jQuery); diff --git a/autologout.module b/autologout.module index 9d6f4a9..d04a975 100644 --- a/autologout.module +++ b/autologout.module @@ -390,6 +390,7 @@ function autologout_init() { 'refresh_only' => $refresh_only, 'no_dialog' => $no_dialog, 'use_alt_logout_method' => $use_alt_logout_method, + 'authcache_enabled' => module_exists('authcache'), ); // If this is an AJAX request, then the logout redirect url should still be @@ -440,6 +441,7 @@ function autologout_autologout_prevent() { 'autologout_ajax_get_time_left', 'autologout_ahah_logout', 'autologout_ahah_set_last', + 'authcache-debug', ); if (in_array(arg(0), $paths)) {