From 6280cc4ef1a59961541da091b892b56a4124f512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Peles=CC=8Cev?= Date: Wed, 17 Dec 2014 15:16:59 +0200 Subject: [PATCH] Fixed force-cache clearing when options updated. No more PHP warnings triggered. --- readme.txt | 2 +- wp-ffpc-class.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index a9cb349..41297b1 100644 --- a/readme.txt +++ b/readme.txt @@ -46,7 +46,7 @@ Many thanks for donations, contributors, supporters, testers & bug reporters: * 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) diff --git a/wp-ffpc-class.php b/wp-ffpc-class.php index 75ea854..f555994 100644 --- a/wp-ffpc-class.php +++ b/wp-ffpc-class.php @@ -694,7 +694,7 @@ class WP_FFPC extends PluginAbstract { options['memcached_binary'],true); ?> /> plugin_constant); ?> - + options['cache_type'], 'memcached') && extension_loaded ( 'memcached' ) && version_compare( phpversion( 'memcached' ) , '2.0.0', '>=' ) || ( $this->options['cache_type'] == 'redis' ) ) { ?> backend->clear(); + $this->backend->clear(null, true); /* create the to-be-included configuration for advanced-cache.php */ $this->update_global_config();