• Resolved munblog

    (@munblog)


    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|240×320|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|240×320|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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Is there any difference in the cookies in IE and Firefox?

    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.

    Thread Starter munblog

    (@munblog)

    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.

    Thread Starter munblog

    (@munblog)

    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.

    Thread Starter munblog

    (@munblog)

    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?

    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.

    Thread Starter munblog

    (@munblog)

    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.

    Hi mundblog,

    Did u solve that issue with IE and WP Super Cache?
    I′m having the same problem! Any tips on how to fix it?

    Thanks
    Alex

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: WP Super Cache] WP Super Cache Generates Cache But Does Not Read From C’ is closed to new replies.