all repos — wp-ffpc @ bce799cabd9916c1d0ce021734b858f37424c238

Merge pull request #30 from plescheff/master

Fixed force-cache-clearing when options updated.
Peter Molnar hello@petermolnar.eu
Wed, 17 Dec 2014 14:33:17 +0100
commit

bce799cabd9916c1d0ce021734b858f37424c238

parent

cae67b0137556a45986ca160a7126365d59c047b

2 files changed, 4 insertions(+), 4 deletions(-)

jump to
M readme.txtreadme.txt

@@ -46,7 +46,7 @@ * Mark Costlow

* Jason Miller * [Dave Clark](https://github.com/dkcwd) * Miguel Clara -* [plescheff](https://github.com/plescheff) +* [Anton Pelešev](https://github.com/plescheff) * Firas Dib * [CotswoldPhoto](http://wordpress.org/support/profile/cotswoldphoto) * [tamagokun](https://github.com/tamagokun)
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -694,7 +694,7 @@ <dd>

<input type="checkbox" name="memcached_binary" id="memcached_binary" value="1" <?php checked($this->options['memcached_binary'],true); ?> /> <span class="description"><?php _e('Some memcached proxies and implementations only support the ASCII protocol.', $this->plugin_constant); ?></span> </dd> - + <?php if ( strstr ( $this->options['cache_type'], 'memcached') && extension_loaded ( 'memcached' ) && version_compare( phpversion( 'memcached' ) , '2.0.0', '>=' ) || ( $this->options['cache_type'] == 'redis' ) ) { ?> <?php

@@ -860,9 +860,9 @@ $this->log ( __('Clearing WP-CRON scheduled hook ' , $this->plugin_constant ) );

wp_clear_scheduled_hook ( self::precache_id ); } - /* flush the cache when news options are saved, not needed on activation */ + /* flush the cache when new options are saved, not needed on activation */ if ( !$activating ) - $this->backend->clear(); + $this->backend->clear(null, true); /* create the to-be-included configuration for advanced-cache.php */ $this->update_global_config();