all repos — wp-ffpc @ fdc985a26107f48523a452f2da2da8ca4d8bf2fd

1.7.3
Peter Molnar hello@petermolnar.eu
Wed, 17 Dec 2014 10:48:02 +0000
commit

fdc985a26107f48523a452f2da2da8ca4d8bf2fd

parent

4fd04af3ea2750c5c4dd14bd3dfd34035844a160

3 files changed, 19 insertions(+), 14 deletions(-)

jump to
M readme.txtreadme.txt

@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XU3DG7LLA76WC

Tags: cache, page cache, full page cache, nginx, memcached, apc, speed Requires at least: 3.0 Tested up to: 4.0 -Stable tag: 1.7.2 +Stable tag: 1.7.3 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html

@@ -54,7 +54,8 @@ * Many Ayromlou

* mailgarant.nl * Christian Rößner * [Ameir Abdeldayem](https://github.com/ameir) -* Gonzalez Crespo +* [Alvaro Gonzalez](https://github.com/andor-pierdelacabeza) +* Meint Post == Installation ==

@@ -115,6 +116,13 @@

* every A. indicates BIG changes. * every .B version indicates new features. * every ..C indicates bugfixes for A.B version. + += 1.7.3 = +*2014-12-17* + +What's fixed: + +* expiration time set to '0' resulted instant expiration instead of infinite keep; fixed now = 1.7.2 = *2014-12-08*
M wp-ffpc-backend.phpwp-ffpc-backend.php

@@ -162,15 +162,12 @@ $this->log ( sprintf( __translate__( 'set %s expiration time: %s', $this->plugin_constant ), $key, $this->options['expire'] ) );

/* expiration time based is based on type from now on */ /* fallback */ - $expire = $this->options['expire']; + $expire = empty ( $this->options['expire'] ) ? 0 : $this->options['expire']; - if ( is_home() || is_feed() ) - $expire = $this->options['expire_home']; - elseif ( is_tax() || is_category() || is_tag() || is_archive() ) - $expire = $this->options['expire_taxonomy']; - - if ( empty($expire) ) - return false; + if (( is_home() || is_feed() ) && isset($this->options['expire_home'])) + $expire = (int) $this->options['expire_home']; + elseif (( is_tax() || is_category() || is_tag() || is_archive() ) && isset($this->options['expire_taxonomy'])) + $expire = (int) $this->options['expire_taxonomy']; /* proxy to internal function */ $internal = $this->proxy( 'set' );

@@ -677,7 +674,7 @@

/* use binary and not compressed format, good for nginx and still fast */ $this->connection->setOption( Memcached::OPT_COMPRESSION , false ); if ($this->options['memcached_binary']){ - $this->connection->setOption( Memcached::OPT_BINARY_PROTOCOL , true ); + $this->connection->setOption( Memcached::OPT_BINARY_PROTOCOL , true ); } if ( version_compare( phpversion( 'memcached' ) , '2.0.0', '>=' ) && ini_get( 'memcached.use_sasl' ) == 1 && isset($this->options['authpass']) && !empty($this->options['authpass']) && isset($this->options['authuser']) && !empty($this->options['authuser']) ) {
M wp-ffpc.phpwp-ffpc.php

@@ -3,13 +3,13 @@ /*

Plugin Name: WP-FFPC Plugin URI: https://github.com/petermolnar/wp-ffpc Description: WordPress in-memory full page cache plugin -Version: 1.7.2 +Version: 1.7.3 Author: Peter Molnar <hello@petermolnar.eu> Author URI: http://petermolnar.eu/ License: GPLv3 */ -/* Copyright 2010-2013 Peter Molnar ( hello@petermolnar.eu ) +/* Copyright 2010-2014 Peter Molnar ( hello@petermolnar.eu ) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as

@@ -58,6 +58,6 @@ 'comments_invalidate' => true,

'pingback_header' => false, ); -$wp_ffpc = new WP_FFPC ( 'wp-ffpc', '1.7.2', 'WP-FFPC', $wp_ffpc_defaults, 'PeterMolnar_WordPressPlugins_wp-ffpc_HU' , 'WP-FFPC' , 'FA3NT7XDVHPWU' ); +$wp_ffpc = new WP_FFPC ( 'wp-ffpc', '1.7.3', 'WP-FFPC', $wp_ffpc_defaults, 'PeterMolnar_WordPressPlugins_wp-ffpc_HU' , 'WP-FFPC' , 'FA3NT7XDVHPWU' ); ?>