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

  • wilef


    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 and tell me if they are getting a cached page or a dynamic page?


Viewing 15 replies - 1 through 15 (of 32 total)
  • Looks like it’s not working properly. Have you looked in wp-content/cache/ and wp-content/cache/supercache/ ? Any files in there?

    Yes there are many files in there.

    Yes, it catch, but it returns to generate the requests.

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


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


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

    Good luck!

    Any errors in your error log?

    I’m assuming you’re referring to the error_log file in my plugins directory. No errors there. I don’t see another error log file anywhere else.

    Check your php.ini. It would be unusual to find the error log in a web accessible directory!

    I don’t have access to the server’s php.ini file as I am on shared hosting.

    What is the content of your .htaccess file?

    htaccess file says:

    ErrorDocument 401 “<p>Error 401</p><p>Authorization Required.</p>”
    ErrorDocument 403 “<p>Error 403</p><p>Forbidden.</p>”
    ErrorDocument 404 “<p>Error 404</p><p>Doocument Not Found.</p>”
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    AddDefaultCharset UTF-8
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    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_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*s=.*
    RewriteCond %{QUERY_STRING} !.*attachment_id=.*
    RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
    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 mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    It’s probably something to do with your DOCUMENT_ROOT. In very rare cases some people seem to have problems with it. You could try replacing DOCUMENT_ROOT with the path to your install.

    Also make sure no other plugin is dying and stopping WordPress from completing requests properly.

    I’m not sure that did anything. Just so I’m understanding you right, I replaced DOCUMENT_ROOT in 2 places in the .htaccess file, and for syntax, it now looks like this:

    RewriteCond %/home/___/public_html/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f


    RewriteCond %/home/___/public_html/wordpress/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    (where the blank is the folder name for my site on the server)

    Does that look right? If so, I’m still seeing dynamic pages, maybe someone else can check it out and tell me if they still look dynamic to you. Thanks again.

    Get rid of the % before and after the paths. That should help!

    thanks, got that now. but I’m afraid I still don’t see a difference (at least I’m still getting dynamic pages served).

    I REALLY appreciate all your help. Let me know if you have any other ideas.

    Is there anything I should be asking my host? Are there some settings that they may have turned off that would prevent the plugin from serving cached pages?

    wilef: I think you’re misunderstanding how the super cache works. The plugin does not serve the super-cached pages at all. That’s sort of the whole point. They get served by those .htaccess rules entirely.

    Thanks for the clarification. The question still stands though, the site is definitely not serving cached pages at all and I’m wondering if there’s anything else you guys can think of that would be causing this. Thanks again.

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