Title: [Plugin: WP Super Cache] Late init and wp-login.php issue
Last modified: August 20, 2016

---

# [Plugin: WP Super Cache] Late init and wp-login.php issue

 *  [romulodl](https://wordpress.org/support/users/romulodl/)
 * (@romulodl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-late-init-and-wp-loginphp-issue/)
 * Hello,
 * I’m running a multisite and have to hook a plugin before the WP-Super-Cache runs.
   So I checked the “late init” option and everything seems good, but when I try
   to login, I’m redirected to the multisite home. Here is the debug file:
 *     ```
       17:08:39 /test_site/wp-login.php Supercache Late Init: add wp_cache_serve_cache_file to init
       17:08:39 /test_site/wp-login.php Supercache Late Loader running on init
       17:08:39 /test_site/wp-login.php supercache dir: /wp-content/cache/supercache/multisite_home/
       17:08:39 /test_site/wp-login.php Served page from supercache file using PHP.
       ```
   
 * Does PHP caching still working even if I check mod_rewrite?
 * [http://wordpress.org/extend/plugins/wp-super-cache/](http://wordpress.org/extend/plugins/wp-super-cache/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-late-init-and-wp-loginphp-issue/#post-2412058)
 * You’ll need to use PHP mode and make sure there are no caching related rules 
   in your .htaccess file.
 * Posting to the login page shouldn’t be cached, but I don’t know why you’d be 
   redirected. Maybe something to do with your plugin?
 *  Thread Starter [romulodl](https://wordpress.org/support/users/romulodl/)
 * (@romulodl)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-late-init-and-wp-loginphp-issue/#post-2412079)
 * I’m going crazy with this issue! Should be another plugin hooked on init doing
   the URI change.
 * Another solution for my problem without the “late init” could be:
 *     ```
       if(super_cache_is_on()){
         add_cacheaction('wp_cache_key', 'my_function');
       }
       else{
         add_action('init', 'my_function');
       }
       ```
   
 * Does it exist a function like ‘super_cache_is_on()’ to hook something before 
   super-cache runs?
 * And thanks for your patience and help. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WP Super Cache] Late init and wp-login.php issue’ is closed 
to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [romulodl](https://wordpress.org/support/users/romulodl/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-late-init-and-wp-loginphp-issue/#post-2412079)
 * Status: not resolved