• Resolved johnnypez

    (@johnnypez)


    WP-Super-Cache is only supercaching my website homepage. No other pages are supercached.

    I’ve traced the reason for this to wp-cache-phase2.php line 204

    if( !empty( $_GET ) || is_feed() || ( $super_cache_enabled == true && is_dir( substr( $supercachedir, 0, -1 ) . '.disabled' ) ) )
      $super_cache_enabled = false;

    For all pages but the home page, $_GET is not empty, there is always something like:
    $_GET['q'] = "/permalink/to/current/post/"

    I understand that any other querystring parameters would be cause to disable supercaching. Is it ok to add a workaround in this case?

Viewing 1 replies (of 1 total)
  • Thread Starter johnnypez

    (@johnnypez)

    Actually a workaround wasn’t necessary.
    It turns out an Nginx rewrite rule was the culprit.

    rewrite ^(.+)$ /index.php?q=$1 last;

    should simply have been:

    rewrite ^(.+)$ /index.php last;

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP Super Cache] Only Homepage is supercached (wpmu 2.6.3)’ is closed to new replies.