Forums

WP Super Cache Generates Cache But Does Not Read From Cache (2 posts)

  1. munblog
    Member
    Posted 1 month ago #

    Hi there,

    I have WP Super Cache installed 2 week ago. Everything went fine until lately I saw my server resources spiked up again.

    Then, I suspect that WP Super Cache is not working.

    1) My .htaccess file

    # 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_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP_USER_AGENT} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/nfs/c02/h09/mnt/23033/domains/munfitnessblog.com/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
    RewriteRule ^(.*) /nfs/c02/h09/mnt/23033/domains/munfitnessblog.com/html/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_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP_USER_AGENT} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
    RewriteCond %{DOCUMENT_ROOT}/nfs/c02/h09/mnt/23033/domains/munfitnessblog.com/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /nfs/c02/h09/mnt/23033/domains/munfitnessblog.com/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>

    # END WPSuperCache

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Are the above rules correct?

    2) If you go to http://munfitnessblog.com/incorrect-belief-in-pursuing-your-fitness-goal/, from "View Source":

    In IE:
    <!-- Dynamic page generated in 0.855 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:40:50 -->

    Firefox:
    <!-- Dynamic page generated in 1.301 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:38:33 -->

    Then, few minutes later, I tried again:
    In IE:
    <!-- Dynamic page generated in 1.232 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:42:04 -->

    Firefox:
    <!-- Dynamic page generated in 1.301 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:38:33 -->

    So, it looks like IE is not reading from the cache?

    3) Now, if you go to the main page http://munfitnessblog.com/

    IE:
    <!-- Dynamic page generated in 1.209 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:05:17 -->

    Firefox:
    <!-- Dynamic page generated in 1.728 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:38:26 -->

    Few minutes later, I tried again:

    IE
    <!-- Dynamic page generated in 1.209 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:05:17 -->

    Firefox:
    <!-- Dynamic page generated in 1.728 seconds. -->
    <!-- Cached page generated by WP-Super-Cache on 2009-10-09 10:38:26 -->

    It looks as if it is working fine on the main page, just that it does not work on individual page for IE.

    Has anyone experienced this before.

    Any advice?

    This problem has been troubling me. I have tried WP Super Cache 0.9.7 and now using the development version dated 6 Oct 2009.

    http://wordpress.org/extend/plugins/wp-super-cache/

  2. munblog
    Member
    Posted 1 month ago #

    I found this...I am not sure whether this is true.

    http://diythemes.com/forums/bug-reports/9809-thesis-ie-specific-css-code-breaks-wp-super-cache-plugin-1-5-1-a.html

    Has anyone had the same problem like mine which IE and Firefox behave differently from reading from cache.

    I am now switching to be half mode and see how the resources utilization will be.

Reply

You must log in to post.

About this Topic