Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mattla93

    (@mattla93)

    In the dev Version deletion of the entire cache works well, but there the Flush Rules don’t work.

    If I add a new Post, then for Example the Start Page didn’t work.
    On Version 1.0 I also noticed that the Garbace Collection scheduled by a Specific time didn’t work well, we’d to change this to Interval Garbage Collection.

    At the Moment I did a Downgrade to the 0.9.9.9 Version, becuase of the Problems in the current Versions.

    Thread Starter mattla93

    (@mattla93)

    I figured out the issue: The wpsupercache Plugin caches User Agents what aren’t catched by the wptouch-pro Plugin, because the mobile User Agents of wpsupercache aren’t the same as the User Agents in wptouch pro.

    So to a mobile user Agent from the wpsupercacheplugin what isn’t catched from the wptouchpro plugin gets displayed the mobile page, and calls the /?classic_include_dynamic=1 File what is now a normal call to the Home Page with some GET Parameters, so this gets cached and the Cached home Version is loaded as a stylesheet for real mobile user agents. So these CSS styles are missing.

    To fix this I have some questions:
    1) There is a field in the settings: Add here strings (not a filename) that forces a page not to be cached.. Can I add here the line ?classic_include_dynamic=1 that there wouldn’t be cached requests like
    /?classic_include_dynamic=1&version=6c1f97d67fec3e255c0cb2279cc943de
    Am I right?

    2) Is it possible to add a field where we can put the mobile User Agents cached with a seperate cache (in my case I would put the same in it as the wptouchpro User Agents, so this Problem above also is solved).

    Thread Starter mattla93

    (@mattla93)

    Did you also read this lines:

    06:03:03 /?classic_include_dynamic=1&version=6c1f97d67fec3e255c0cb2279cc943de wp-cache file exists: /srv/www/page/wp-content/cache/wp-cache-c5b5692502dc8acea6c33b844e13a737.html
    06:03:03 /?classic_include_dynamic=1&version=6c1f97d67fec3e255c0cb2279cc943de Serving wp-cache static file
    06:03:03 /?classic_include_dynamic=1&version=6c1f97d67fec3e255c0cb2279cc943de exit request

    This means that this script was cached and served to a anonymous supercache user. Then after I deleted the wp-cache html Page the classic_include_dynamic File won’t be cached again. Then after a while I’ve the same problem again.

    In fact this file is beeing cached, but it shouldn’t. This problem I have on 4 Blogs where is installed wptouchpro and wp-super-cache. I wasn’t able to figure out when this file exactly gets cached, because while testing the DEBUG reported that the file won’t be cached because of the no closing html tag.

    Maybe there is a bug, that also files with closing html tags will be cached?
    But then also when this test fails the file shouldn’t be cached because of the query string, am I right?

    Thread Starter mattla93

    (@mattla93)

    This solution will solve the problem for sure, but I don’t want to bypass the cache for mobile User Agents, because of the high load produced by the Mobile UA.

    Isn’t there another solution?

    Thread Starter mattla93

    (@mattla93)

    That’s a missing feature, to serve static files to mobile user agents with mod_rewrite without passing php ;D

    Thread Starter mattla93

    (@mattla93)

    Yes, thanks that was the problem.

    Thread Starter mattla93

    (@mattla93)

    Strange, now it works perfectly. Maybe the nginx reload wasn’t successfull and the Rewrite rules didn’t match correctly.

    Another Question, which User Agents get the -mobile Cached Files?

    Are this these User Agents:

    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800|iPhone|iPod|Aspen|incognito|webmate|Android|2.1-update1|dream|CUPCAKE|froyo|BlackBerry9500|BlackBerry9520|BlackBerry9530|BlackBerry9550|BlackBerry\ 9800|webOS|s8000|bada).* [NC]
    RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]

    or the user agents who are redirected to wptouch?

    We have it enabled on more blogs, just ignore the mod_rewrite Warning, enable gzip_static.

    #wenn file existiert gleich anzeigen
    if (-f $request_filename) {
    	break;
    }
    
    set $supercache_file '';
    set $supercache 1;
    set $supercache_uri $request_uri;
    set $ihttp_host '';
    
    if ($request_method = POST) {
    	set $supercache 0;
    }
    
    # Using pretty permalinks, so bypass the cache for any query string
    set $qs 0;
    if ($query_string) {
    	set $qs 1;
    }
    
    #supercaching when coming from twitter, facebook, feedburner
    if ($query_string ~* "^utm_source=([^&]+)&utm_medium([^&]+)&utm_campaign=([^&]+)(&utm_content=([^&]+))?$") {
    	set $qs 0;
    	set $supercache_uri $document_uri;
    }
    #set $qs 1;
    
    #if querystring test not passed, not caching
    #deactivate on high load
    if ($qs = 1) {
    	set $supercache 0;
    }
    
    #deactivate it on high traffic
    if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
    	set $supercache 0;
    }
    
    #mobile device support
    #RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mob)$
    #RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|)$
    
    #if ($http_user_agent ~* '^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mob)$') {
    #	set $supercache 0;
    #}
    
    #if ($http_user_agent ~* '^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|)$') {
    #	set $supercache 0;
    #}
    
    if ($http_user_agent ~* '(iphone|ipod|aspen|incognito|webmate|android|dream|cupcake|froyo|blackberry9500|blackberry9520|blackberry9530|blackberry9550|blackberry 9800|webos|s8000|bada)') {
    #	set $ihttp_host '-mobile';
    	set $supercache 0;
    }
    
    # if we haven't bypassed the cache, specify our supercache file
    if ($supercache = 0 ) {
    	set $supercache_uri '';
    }
    
    if ($supercache_uri ~ ^(.+)$) {
    		set $supercache_file /wp-content/cache/supercache/$http_host$1/index${ihttp_host}.html;
    }
    
    # only rewrite to the supercache file if it actually exists
    if (-f $document_root$supercache_file) {
    	rewrite ^ $supercache_file last;
    #	rewrite ^(.*)$ $supercache_file last;
    }
Viewing 8 replies - 1 through 8 (of 8 total)