Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I could see term_group being used to group terms together. For example, if you have the tags Apple, Banana, and Orange, you could put them in a “Fruit Group”

    This would be helpful if you want a hierarchy of tags to allow users to browse through high-level tags (“Food”) before getting to more specific tags (“Granny Smith Apple”)

    /sam

    Here’s what I did to solve this problem:

    I wanted to prevent iPhone browsers from generating super-cached HTML as well as from receiving super-cached HTML from previous hits.

    1. In the WP-Super-Cache settings page, I added “iPhone” to the “Rejected User Agents” list (as well as iPod, Android, BlackBerry, etc). You can get a list of these from wp-cache-config.php. This prevents any hits from an iPhone from generating a cached file.

    2. In my /.htaccess file, I added these lines to the WP-Super-Cache Rewrite conditions to prevent iPhone user agents from receiving any cached files that have been generated:

    # 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_).*$
    # ADDED THIS LINE TO PASS-THROUGH MOBILE USER AGENTS
    RewriteCond %{HTTP_USER_AGENT} !(iPhone|iPod|Android|Danger|Playstation|BlackBerry)
    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_).*$
    # ADDED THIS LINE TO PASS-THROUGH MOBILE USER AGENTS
    RewriteCond %{HTTP_USER_AGENT} !(iPhone|iPod|Android|Danger|Playstation|BlackBerry)
    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

    Seems to work so far…I’ll have to do some more testing.

    Thread Starter samxnguyen

    (@samxnguyen)

    Donncha, thanks for the response. I gave up on it for a couple of months and picked it back up this week when I noticed that you released a new version. I got it working! Thanks so much!

    I was having the same problem. In the Super Cache settings page, I would see the WP-Cache counter increasing but WP-Super-Cache would stay at zero.

    The readme.txt states that static pages will be served to:

    Users who have not left a comment on your blog.

    So in Firefox I cleared my private data to prevent sending any old cookies, and Super-Cache started counting up!

    So if you are having this problem, try clearing your cookies or using a different browser.

Viewing 5 replies - 1 through 5 (of 5 total)