The MU forums have moved to WordPress.org

WP Super Cache -- installed but I never get a cached version of pages (3 posts)

  1. xyzzy
    Member
    Posted 14 years ago #

    Hi, I have WP Super Cache installed. I updated the htaccess files, etc. Things seem to be fine (no complaints in the admin).

    The footer is being added to my pages.

    ie:
    <!-- Cached page generated by WP-Super-Cache on 2009-06-09 10:21:17 -->

    The problem is that I never seem to get a cached file! The timestamp is always updated.

    I am using this in a browser that is NOT logged into WPMU.

    Could someone provide any tips? I've followed the FAQ for the plugin, but I don't see any mention of this particular problem.

    Thanks.

  2. xyzzy
    Member
    Posted 14 years ago #

    It might help if i post my htaccess file.

    Does the htaccess file need to updated for each blog? I'm confused by what I see for RewriteBase in the plugin admin page (ie. wpmu-admin.php?page=wpsupercache). If you're in one blog's backend, it says:

    rewritebase /someblog/

    ie. it uses that blogs location.

    Should it just be

    rewritebase /
    ?

    Here is my htaccess file, for what it's worth:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/admissiontest/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/admissiontest/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/admissiontest/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/admissiontest/$1/index.html [L]
    </IfModule>
    # END WPSuperCache
    
    php_value max_execution_time 300
    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
  3. Klark123
    Member
    Posted 14 years ago #

    noone else has seen this?

About this Topic