Plugin Directory

Changeset 511632


Ignore:
Timestamp:
02/28/2012 11:38:54 AM (14 years ago)
Author:
rukbat
Message:

Upgrade to version 1.3.4.2

Location:
nginx-manager/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nginx-manager/trunk/nginx-manager.php

    r484363 r511632  
    55Description: Manage Nginx cache
    66Author: Simone Fumagalli & Marco Zanzottera
    7 Version: 1.3.4.1
     7Version: 1.3.4.2
    88Author URI: http://www.iliveinperego.com
    99Network: true
     
    4444    class nginxmLoader {
    4545       
    46         var $version            = '1.3.4.1'; // Plugin version
     46        var $version            = '1.3.4.2'; // Plugin version
    4747        var $db_version         = '1.3.4'; // DB version, change it to show the upgrade page
    4848        var $minium_WP          = '3.0';
  • nginx-manager/trunk/nginxmNginx.php

    r484363 r511632  
    2626            global $nginxm;
    2727           
    28             $cache_ttl = 0;
    29            
    30             // If it's an HTML document or a feed
    31             if ( ( strpos($http_headers['Content-Type'], "text/html") !== false ) || ( strpos($http_headers['Content-Type'], "text/xml") !== false ) ) {
    32                $cache_ttl = $nginxm->global_options['cache_ttl'];
    33             }   
     28            $cache_ttl = $nginxm->global_options['cache_ttl'];
    3429           
    3530            // If the user is logged in
    36             foreach($_COOKIE as $key => $value){
    37                 if ( preg_match($nginxm->global_options['cookie_regexp'], $key) ) {
    38                     $cache_ttl = 0;
    39                 }
    40             }
    41            
     31            foreach($_COOKIE as $key => $value){
     32                if ( preg_match($nginxm->global_options['cookie_regexp'], $key) ) {
     33                    $cache_ttl = 0;
     34                }
     35            }
     36           
    4237            // If the request is from a mobile device disable cache
    4338            if ( $nginxm->global_options['mobile_uncache'] ) {
     
    4742                }
    4843            }
    49            
    50             $http_headers['X-Accel-Expires'] = $cache_ttl;
    51            
    52             if ($cache_ttl == 0) {
    53 
    54                 $http_headers['X-NGINX-CACHED']  = "NO";
    55                
    56             } else {
    57 
    58                 $http_headers['X-NGINX-CACHED']     = "YES - ".$cache_ttl." secs";
    59                 $http_headers['X-NGINX-CACHED-AT']  = date('c');
    60                
    61             }
    62            
    63             return $http_headers;
    64        
     44           
     45            $http_headers['X-Accel-Expires'] = $cache_ttl;
     46           
     47            if ($cache_ttl == 0) {
     48               
     49                $http_headers['X-NGINX-CACHED']  = "NO";
     50               
     51            } else {
     52               
     53                $http_headers['X-NGINX-CACHED']     = "YES - ".$cache_ttl." secs";
     54                $http_headers['X-NGINX-CACHED-AT']  = date('c');
     55               
     56            }
     57           
     58            return $http_headers;
     59           
    6560        }
    6661       
     
    323318                    }
    324319                }
    325             }           
     320            }           
    326321           
    327322        }
     
    765760               
    766761                foreach( $_daily_archives as $_da ) {
    767                     $this->log( sprintf(  "+ ".__( "Purging daily archive '%s/%s/%s'", "nginxm" ), $_da->year, $_da->month, $_da->dayofmonth ) );
     762                    $this->log( sprintf( "+ ".__( "Purging daily archive '%s/%s/%s'", "nginxm" ), $_da->year, $_da->month, $_da->dayofmonth ) );
    768763                    $this->purgeUrl( get_day_link( $_da->year, $_da->month, $_da->dayofmonth ) );
    769764                }
     
    797792               
    798793                foreach( $_monthly_archives as $_ma ) {
    799                     $this->log( sprintf(  "+ ".__( "Purging monthly archive '%s/%s'", "nginxm" ), $_ma->year, $_ma->month ) );
     794                    $this->log( sprintf( "+ ".__( "Purging monthly archive '%s/%s'", "nginxm" ), $_ma->year, $_ma->month ) );
    800795                    $this->purgeUrl( get_month_link( $_ma->year, $_ma->month ) );
    801796                }
     
    829824               
    830825                foreach( $_yearly_archives as $_ya ) {
    831                     $this->log( sprintf(  "+ ".__( "Purging yearly archive '%s'", "nginxm" ), $_ya->year ) );
     826                    $this->log( sprintf( "+ ".__( "Purging yearly archive '%s'", "nginxm" ), $_ya->year ) );
    832827                    $this->purgeUrl( get_year_link( $_ya->year ) );
    833828                }
  • nginx-manager/trunk/readme.txt

    r484363 r511632  
    33Tags: cache, nginx, purge, performance
    44Requires at least: 3.0
    5 Tested up to: 3.3
     5Tested up to: 3.3.1
    66Stable tag: trunk
    77
     
    2020- You can add personal URLs to be purged when the post is modified
    2121- Purge of future posts is handled with an external script.
    22 - Integration with NEXTGen Gallery.
     22- Integration with NextGEN Gallery plugin.
    2323
    2424Credits :
    2525
    26 - This plugin is based on the structure of famous plugin "NEXTGen Gallery"
     26- This plugin is based on the structure of famous NextGEN Gallery plugin.
    2727
    2828
     
    3131*IMPORTANT*
    3232
    33 If you are using a proxy you must modify the file wp-includes/class-http.php and delete lines 1346-1347 (WP 3.3) in function send_through_proxy():
     33If you are using a proxy you must modify the file wp-includes/class-http.php and delete (or comment out) lines 1346-1347 (WP 3.3) in function send_through_proxy():
    3434           
    3535if ( $check['host'] == 'localhost' || $check['host'] == $home['host'] )
     
    6363== Changelog ==
    6464
     65= 1.3.4.2 (2012 02 29) =
     66* BUG : Fixed cache for feed pages
     67
    6568= 1.3.4.1 (2012 01 04) =
    66 * BUG : Fix mobile regex
     69* BUG : Fixed mobile regex
    6770
    6871= 1.3.4 (2011 12 27) =
Note: See TracChangeset for help on using the changeset viewer.