• Hey,

    I checked pretty much everything and still there is a line in header:
    WP-Super-Cache: WP-Cache

    • My Apache has the mod rewrite and mod mime modules installed.
    • PHP Safe mode is disabled.
    • WP permalinks enabled.
    • wp-cache-config.php and advanced-cache.php are in /wp-content/ (I deleted them once and reactivated the plugin)
    • There are 11 files in /www/wp-content/cache/
    • There are 19 files in /www/wp-content/cache/supercache/hostname/
    • And I get no errors whatsoever.

    Settings —> WP Super Cache currently shows this:

    WP-Cache (188.11KB)

    28 Cached Pages
    0 Expired Pages
    WP-Super-Cache (2.03MB)

    57 Cached Pages
    0 Expired Pages
    Garbage Collection
    Last: 2009-06-05 20:22:05
    Next: 2009-06-05 20:32:05

    And this is my blogs footer:
    <!– Dynamic page generated in 1.077 seconds. –>
    <!– Cached page generated by WP-Super-Cache on 2009-06-05 18:12:51 –>
    <!– Compression = gzip –>

    Could you please tell me why my posts are cached by WP-Cache only instead WP-Super-Cache?

    Any help greatly appreciated
    Thanks
    Peter

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter piter45

    (@piter45)

    This is my /www/.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|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_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    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>
    
    # END WPSuperCache

    This is my /www/wp-content/cache/.htaccess file:

    # BEGIN supercache
    <IfModule mod_mime.c>
      AddEncoding gzip .gz
      AddType text/html .gz
    </IfModule>
    <IfModule mod_deflate.c>
      SetEnvIfNoCase Request_URI \.gz$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
      Header set Cache-Control 'max-age=300, must-revalidate'
    </IfModule>
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType text/html A300
    </IfModule>
    
    # END supercache

    Are you logged in? Left a comment? Got a cookie?

    Thread Starter piter45

    (@piter45)

    I tested it while beeing logged in and logged out on my website. Still there is WP-Cache only.

    Thread Starter piter45

    (@piter45)

    And WP-Cache only isn’t exactly doing the thing, because each time a member logs in or out it uses database to create a new static home page.

    Expire time is set to 3600 seconds, but when I logg in and out the new home page is generated at the second I LOG OUT.
    It’s really confusing, but this is what happens right now I think.
    That’s why I would like Super-Cache to work, cause its faster and doesn’t need to use database all the time.

    When more people come to my site I keep getting: “Error establishing a database connection”

    Thread Starter piter45

    (@piter45)

    DO NOT READ MY PREVIOUS POST – Sorry, It’s wrong. :/

    Here’s the deal:

    Basically WP-Cache serves static pages, but it connects to the database and slows down the server anyway.

    In the evenings half of the people who enter my blog see the error:
    “Error destablishing a database connection”

    WP-Cache is not enough. I did everything for WP-Super-Cache to make it work, but it still doesn’t… πŸ™

    WP-Super-Cache doesn’t connect to the db to serve cached pages. For some reason it’s just not working correctly on your host. I don’t know why.
    Can you try the development version on the download page? That has a few fixes that may work for you.

    Thread Starter piter45

    (@piter45)

    Thanks for the tip.
    Trunk version is working correctly! πŸ™‚
    No WP-Cache in header
    <!– super cache –> in footer
    Thanks!

    Thread Starter piter45

    (@piter45)

    The <!– super cache –> in footer disappeared now.
    Is it normal?

    Thread Starter piter45

    (@piter45)

    Oh donncha btw. Your http://ocaoimh.ie/ Holy shmoly site has WP-Super-cache: WP-Cache in header too. Why aren’t you using super cache?

    Thread Starter piter45

    (@piter45)

    2 hours later…
    And now there isn’t WP-Cache in your header’s blog.
    Jesus, this is so confusing :S
    It’s changing all the time.

    Thread Starter piter45

    (@piter45)

    I am so confused right now.
    Please for the last time… tell me if this is correct or not:

    <!– Dynamic page generated in 1.047 seconds. –>
    <!– Cached page generated by WP-Super-Cache on 2009-06-06 02:29:15 –>
    <!– Compression = gzip –>

    That looks correct!

    You may have hit my blog just after it had deleted old cache files and you were then served a php cache file. I’m not worried, it’s just as fast.

    Thread Starter piter45

    (@piter45)

    Donncha,

    There isn’t WP-Cache in the header, but when I refresh the page it always shows the current time down there:
    <!– Dynamic page generated in 1.610 seconds. –>
    <!– Cached page generated by WP-Super-Cache on 2009-06-06 15:01:35 –>

    I think it’s not working :/
    And I still get the “Error destablishing a database connection”…. so it clearly connects to the database….

    ??

    Try the development version on the download page. Does that help? Make sure you delete the supercache rewrite rules first though!

    I think I face more or less the same problem. I am using developer version, downloaded around three hours ago. Before it would not work at all.

    1. I have qtranslate installed, and updated to the lates svn version of it, so now also my translated non main language posts get noticed by super cache. That seems to be working…
    2. I have php speedy activated, and it seems to interact well with wp-supercache, though the additional files it outputs are not getting compressed at all, the page itself does so.

    3. and now there is the problem. I myself get served non static pages, I think this is correct. However on first loading, my pages are not gzipped. This means I have to wait 3-7 seconds instaed of 2-3 seconds for the page to appear. If I Reload then I get served gzipped wp super cached page (and of course again all the files that were already in firefox cache again).

    So I clicked on 16:24:42 to load my page, now I see this in source:

    <!– Dynamic page generated in 2.752 seconds. –>
    <!– Cached page generated by WP-Super-Cache on 2009-06-07 16:24:48 –>

    On reload I see this, which I should have seen the first time too, or is cache generated allways offered non gzipped?:

    <!– Dynamic page generated in 2.752 seconds. –>
    <!– Cached page generated by WP-Super-Cache on 2009-06-07 16:24:48 –>
    <!– Compression = gzip –>

    Also the follwing two lines in source (/php_speedy_wp/cache/_cmp_cssstyleshee and cmp_javascript_* from php speedy never get compressed, they appear in in page source code like this:

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”&gt;
    <html xmlns=”http://www.w3.org/1999/xhtml&#8221; dir=”ltr” lang=”en-US”>
    <head profile=”http://gmpg.org/xfn/11″&gt;
    <link type=”text/css” href=”http://openmtbmap.org/wp-content/plugins/php_speedy_wp/cache/_cmp_cssstylesheet_a05962d51c6f35fe575fb390d1bd833b.php&#8221; rel=”stylesheet” />
    <script type=”text/javascript” src=”http://openmtbmap.org/wp-content/plugins/php_speedy_wp/cache/_cmp_javascript_3a79fad7bcf046d00f2c5c825c6e9f4e.php”></script&gt;
    <meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />
    <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />

    Here is a copy of .htaccess:

    # 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|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}/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_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !=POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|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}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
    RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
    </IfModule>

    # END WPSuperCache

    # Expire images header
    ExpiresActive On
    ExpiresDefault A0

    ExpiresByType image/gif A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/ico A604800
    ExpiresByType application/pdf A604800
    ExpiresByType text/css A6040800
    ExpiresByType text/javascript A6040800
    ExpiresByType text/html A6040800

    # KILL THEM ETAGS
    FileETag none

    # Below uses mod_deflate to compress text files. Never compress binary files.
    <IfModule mod_deflate>
    SetOutputFilter DEFLATE
    # compress content with type html, text, js, and css
    AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/x-javascript
    <IfModule mod_headers>
    # properly handle requests coming from behind proxies
    Header append Vary User-Agent
    </IfModule>
    </IfModule>

    # Properly handle old browsers that do not support compression
    <IfModule mod_deflate>
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    # Explicitly exclude binary files from compression just in case
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|swf|ico|zip)$ no-gzip
    </IfModule>

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

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

    AND wpcontend/cache/ht.access:

    # BEGIN supercache
    <IfModule mod_mime.c>
    AddEncoding gzip .gz
    AddType text/html .gz
    </IfModule>
    <IfModule mod_deflate.c>
    SetEnvIfNoCase Request_URI \.gz$ no-gzip
    </IfModule>
    <IfModule mod_headers.c>
    Header set Cache-Control ‘max-age=300, must-revalidate’
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html A300
    </IfModule>

    # END supercache

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Plugin: WP Super Cache] Response header: WP-Super-Cache:WP-Cache’ is closed to new replies.