Forums

[resolved] [Plugin: WP Super Cache] WP Super Cache Generates Cache But Does Not Read From C (8 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 I go to one individual post, 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 of the blog:

    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.

    I am on Media Temple and was surprised to find many other people on Media Temple can't get this plugin to work.

  2. donncha
    Member
    Posted 1 month ago #

    Is there any difference in the cookies in IE and Firefox?

  3. donncha
    Member
    Posted 1 month ago #

    Try editing the .htaccess and change "wordpress_logged_in" to "wordpress" in both places where that string occurs.

    I'm fairly sure the plugin works fine for most MT users but you should talk to support there as I don't have an account there.

  4. munblog
    Member
    Posted 1 month ago #

    Thanks for replying.

    Good suggestion. I will try to do it again and use another PC with fresh installation of Firefox and IE to find out the result.

    However, what is more important is other visitors. I do not know what surfing behavivour their browser (IE and FireFox) will generate the page again and NOT reading from cache. Ultimately, their visit contribute 99% of my traffic.

  5. munblog
    Member
    Posted 1 month ago #

    Tried the method to editing the .htaccess with changes on "wordpress_logged_in" to "wordpress" in both places where that string occurs., I still have the same problem.

    WP Super Cache are installed and setup ok.

    However, the pages are regenerated each times.

    I am using WP 2.8.4 and WP Super Cache 0.9.7

    I am using following plugins:
    - Add Meta Tags
    - Adsense-Deluxe
    - Akismet
    - Angsuman's Translator Plugin Gold
    - Batch image upload
    - Dagon Design Sitemap Generator
    - Exec-PHP
    - Google XML Sitemaps
    - Highligh Author Comments
    - Optimal Title
    - Ozh' Better Feed
    - Related Posts
    - SGR Clean Archives
    - Subcribe To Comments
    - Wordpress.com Stats
    - Wordpress Backup
    - WP-ContactForm: Akismet Edition
    - WP-EMail
    - WP-PageNavi
    - WP Super Cache

    I really love this WP Super Cache as it was using fine 3 weeks ago. Since 1 week ago, I upgraded it to the latest version and then everything broke.

    Sigh.

  6. munblog
    Member
    Posted 1 month ago #

    I roll back to WP Super Cache 0.9.6.1 (uninstall 0.9.7 before reinstall from fresh).

    Now, I realize only users who are logged on can see the cache files.

    Other visitors, whether on IE or FireFox, who refresh the page, will see dynamically generated file and not from the cache. In other words, files are not read from cache.

    Is this a known bug?

  7. donncha
    Member
    Posted 1 month ago #

    It's something up with your .htaccess rules I think, but if you can't debug and fix it then switching to half on mode will solve the problem too.

  8. munblog
    Member
    Posted 1 month ago #

    Hi donncha,

    I think I know what went wrong.

    The autogenerated rules for .htaccess point a wrong path for my /wp-content

    I just changed it. Fingers crossed, hope things go well this round.

    Cheers.

Reply

You must log in to post.

About this Topic