Forums

[Plugin: WP Super Cache] Gzip files not being created under 0.9.6.1 (2 posts)

  1. widgett
    Member
    Posted 2 years ago #

    I have upgraded to 0.9.6.1 and noticed that Gzip files aren't being created. Regular WP-cache stuff works fine and the notice that it's serving WP-cache files appears in the source for the pages. The supercache directory is empty, however.

    I tried updating my .htaccess to the latest version of what was needed in it, but that caused my site to 404. Reverting to this worked:

    <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}/$1/index.html.gz -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$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}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>

    Checked out the readme:

    - wp-content is writable by the web server
    - wp-cache-config.php and advanced-cache.php exist and point to the right place
    - wp-config.php appears to be correct
    - nothing in error_log
    - .htaccess in the /cache/ directory is there and correct

    I have successfully used Gzip in the past, so unless something has changed on my server that I'm unaware of (this is a server I control, so I'm not in a weird shared setup or anything), I'm wondering why I'm acting like I'm half-on, even though I'm set to "full on."

    Anything else I can check? I apologize in advance if this is something bleedingly obvious, I am on a bit of sinus medication at the moment. Thanks.

  2. Donncha O Caoimh
    Member
    Posted 2 years ago #

    Compare the mod_rewrite rules in each version. There's probably something obvious that you're missing.

    What are the permissions on your supercache directory?

Topic Closed

This topic has been closed to new replies.

About this Topic