Changeset 484361
- Timestamp:
- 01/04/2012 10:01:59 AM (14 years ago)
- Location:
- nginx-manager/trunk
- Files:
-
- 2 edited
-
nginxmNginx.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nginx-manager/trunk/nginxmNginx.php
r480988 r484361 41 41 42 42 // If the request is from a mobile device disable cache 43 <<<<<<< .mine 44 if ( $nginxm->global_options['mobile_uncache'] ) { 45 $_mobile_regex = ( isset($nginxm->global_options['mobile_regexp']) && ($nginxm->global_options['mobile_regexp'] != '' ) ) ? $nginxm->global_options['mobile_regexp'] : '#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|NF-Browser|iPhone|iPod|Android|BlackBerry9530|G-TU915 Obigo|LGE VX|webOS|Nokia5800#'; 46 if ( preg_match( $_mobile_regex, $_SERVER['HTTP_USER_AGENT'] ) ) { 47 $cache_ttl = 0; 48 } 49 ======= 43 50 if ( $nginxm->global_options['mobile_uncache'] ) { 44 51 $_mobile_regex = ( isset($nginxm->global_options['mobile_regexp']) && ($nginxm->global_options['mobile_regexp'] != '' ) ) ? $nginxm->global_options['mobile_regexp'] : '/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|NF-Browser|iPhone|iPod|Android|BlackBerry9530|G-TU915 Obigo|LGE VX|webOS|Nokia5800/'; … … 46 53 $cache_ttl = 0; 47 54 } 55 >>>>>>> .r484353 48 56 } 49 57 -
nginx-manager/trunk/readme.txt
r480988 r484361 63 63 == Changelog == 64 64 65 <<<<<<< .mine 66 = 1.3.4.1 (2012 01 04) = 67 * BUG : Fix mobile regex 68 65 69 = 1.3.4 (2011 12 27) = 66 70 * BUG : Now PurgeUrl also consider the query_string … … 69 73 * EDIT : CPT identification by options, not automatically 70 74 75 ======= 76 = 1.3.4 (2011 12 27) = 77 * BUG : Now PurgeUrl also consider the query_string 78 * NEW : Added an hook to run a function when a NGG gallery is purged. Hook name nm_ngg_gallery_purge 79 * NEW : Added options to choose if purge if user agent is from a mobile device and edit the regex. 80 * EDIT : CPT identification by options, not automatically 81 82 >>>>>>> .r484353 71 83 = 1.3.3 (2011 09 20) = 72 84 * NEW : If the request is from a mobile device disable cache
Note: See TracChangeset
for help on using the changeset viewer.