• Sometimes for certain users/browsers WP Super Cache serves the wrong cached page for the home page. Instead of serving the home page it serves a cached version of the first category page. It’s hard to reproduce the problem but we’re seeing it more or less daily.

    I can fix this by clearing the entire cache, but this can hurt my SEO quite a bit if the googlebot lands on my homepage when this is occurring.

    my .htaccess

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    #RewriteCond %{REQUEST_METHOD} !=POST
    #RewriteCond %{QUERY_STRING} !.*=.*
    #RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    #RewriteCond %{HTTP:Accept-Encoding} gzip
    #RewriteCond /mnt/stor1-wc1-dfw1/379363/www.mmohut.com/web/content/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    #RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]

    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond /mnt/stor1-wc1-dfw1/379363/www.mmohut.com/web/content/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>

    I commented the top section out because my host recommended it to me. [mosso cloud hosting]. I have Super compression set to disabled in the backend, but it still gets super compressed. Even if I don’t comment the top part out, i still get the same error of my category page being cached as the homepage.

  • The topic ‘WP Super Cache serves category page has homepage’ is closed to new replies.