WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Super Cache] How do I know it’s really caching?

[Plugin: WP Super Cache] How do I know it’s really caching?

  • Everything seems to be running smooth except I always get a ‘<!– Dynamic Page Served (once) in 0.377 seconds –>’ message when testing it out. The Dashboard shows pages being cached, but how do I know for sure? I’ve deleted my cookies and browsing history, but I’m still seeing dynamic pages. Does it use IP address to determine who to serve dynamic pages to?

    In case I can’t figure this one out, could someone go to http://www.2pstart.com and tell me if they are getting a cached page or a dynamic page?

    Thanks!

Viewing 15 replies - 16 through 30 (of 32 total)
  • Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    Well, the only reason it would not be working is:
    a) your htaccess rules are still wrong or
    b) you have it turned off.

    It’s really that simple. Here’s an example of working rules:

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{DOCUMENT_ROOT}/blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz -f
    RewriteRule ^(.*) /blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html.gz [L]
    
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
    RewriteCond %{DOCUMENT_ROOT}/blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html -f
    RewriteRule ^(.*) /blog/wp-content/cache/supercache/%{HTTP_HOST}/blog/$1/index.html [L]
    </IfModule>
    
    # END WPSuperCache

    My blog folder’s name is “blog” in this case.

    I am having the same issue…. I havel looked at my cache and super cache folder, and there are files there. When I go to any of the pages that show as cached for that file, they show on the bottom
    <!– Dynamic Page Served (once) in 0.XXX seconds –>
    I am with hostgator hosting, and would like this to come out working as my site is getting bigger and bigger traffic… any new suggestions? I have WP 2.5.1 and Super-Cache 0.8.5.

    Also, I have another site, on the same server, where in the bottom of the source code it shows:
    <!– Dynamic Page Served (once) in 0.524 seconds –>
    <!– Cached page served by WP-Super-Cache –>
    <!– Compression = gzip –>
    Does this meant that its cached?

    Seems like for many of us the new(er) versions are caching but not serving the cached pages even after going through the troubleshooting in the readme.

    #1 ( first time loading a page after logging out)
    <!– Dynamic Page Served (once) in 0.946 seconds –>
    <!– Cached page generated by WP-Super-Cache on 2008-12-25 11:25:44 –>

    #2 ( reloaded the same page)
    <!– Dynamic Page Served (once) in 0.946 seconds –>
    <!– Cached page generated by WP-Super-Cache on 2008-12-25 11:25:44 –>
    <!– Compression = gzip –>

    I’ve done some testing on a few sites that haven’t been upgraded to 2.7 and had an older version of supercache .83 and .85. BOTH of them were running wp-mu 2.6.x and both were SERVING the cached page on reload (at least they said they were).
    As soon as I upgraded to supercache .86 it only generated the cached page. it no longer said they were being served.

    As a final test, I deleted supercache .86 from one site and uploaded the .85 backup from the other. It worked again.

    .86 is broken 🙁

    So
    <!– Dynamic Page Served (once) in 0.524 seconds –>
    <!– Cached page served by WP-Super-Cache –>
    <!– Compression = gzip –>
    means that its not caching right? wth can I do to fix it?

    nemo, it is broken if it always says it is serving dynamic pages like in my example…

    Donncha, are you still on vacation?

    Looks to me like its working for both of you. Your code looks like the same code I am seeing at the bottom of the authors homepage.

    So its working? Or is lostdeviant right?

    well considering how the readme says that it should show the cached page as “served” if it is working then the newest version doesn’t work as I said I had to go back one version for the cached page served message to appear.

    Additionally I had gotten a nice account suspension from one of my web hosts.

    why?
    They mentioned too much mysql use (which I reduced by rewriting some scripts to get rid of features, etc.)

    AND

    A request to CACHE my blog pages.
    if .86 were caching my pages and SERVING them, then why would they tell me that?

    All I can say is that the authors site says

    “<!– Dynamic Page Served (once) in 0.483 seconds –>
    <!– Cached page generated by WP-Super-Cache on 2009-01-07 04:22:56 –>
    <!– Compression = gzip –>”

    So, if that is not correct, then I am sure he will be implementing a fix soon???

    Take a look at his site for yourself… are you seeing the same thing I am?

    I believe my webhost, but I really hope Donncha will get back from vacation and let us know what is happening since .85 does give me the messages and .86 doesn’t.

    His readme clearly states:

    “How do I know my blog is being cached? =

    View the source of any page on your site. When a page is first created, you’ll see the text “Dynamic Page Served (once) in X.XXXXX seconds” at the end of the source code. On reload, a cached page displays, “Cached page served by WP-Super-Cache”.”

    Hi,

    I’m having the same issue I think.

    WP super cache says its caching. in my ftp folder all wp super cached files are there int he right folders (lots of posts have already a cached page)

    However when loading my homepage or a post for that matter I always receive:

    <!-- Dynamic Page Served (once) in 0.391 seconds -->
    <!-- Cached page generated by WP-Super-Cache on 2009-01-10 14:10:28 -->
    <!-- Compression = gzip -->

    seconnd load attempt:

    <!-- Dynamic Page Served (once) in 0.391 seconds -->
    <!-- Cached page generated by WP-Super-Cache on 2009-01-10 14:10:28 -->
    <!-- Compression = gzip -->

    (at the time of this post it is 16:35:10)

    So the (once) should not be present?

    Installed 0.8.5 to be sure:

    first load:

    <!-- Dynamic Page Served (once) in 1.738 seconds -->

    second load

    <!-- Dynamic Page Served (once) in 1.738 seconds -->
    <!-- Cached page served by WP-Super-Cache -->
    <!-- Compression = gzip -->

    So I guess it is ok

    Thanks for doing the same test and confirming this issue. I’m very curious why Donncha hasn’t yet chimed in on this issue considering how .87 is out. I left a comment on his blog post about the release of .87. I hope he’ll find it and get back to all of us.

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘[Plugin: WP Super Cache] How do I know it’s really caching?’ is closed to new replies.