• 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@romulodl)

    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.