all repos — wp-ffpc @ 32e75b5cb6f2ef5b1dd3c412e2f6bea4cb4dad03

release of version 0.5

git-svn-id: http://plugins.svn.wordpress.org/wp-ffpc/trunk@677016 b8457f37-d9ea-0310-8a92-e5e31aec5664
cadeyrn cadeyrn@b8457f37-d9ea-0310-8a92-e5e31aec5664
Wed, 06 Mar 2013 19:03:30 +0000
commit

32e75b5cb6f2ef5b1dd3c412e2f6bea4cb4dad03

parent

8a738ded441221ded55d104f2de724ef3abe41ed

2 files changed, 16 insertions(+), 11 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, APC, memcached, full page cache Requires at least: 3.0 Tested up to: 3.5.1 -Stable tag: 0.4.3 +Stable tag: 0.5 Fast Full Page Cache, backend can be memcached or APC

@@ -60,7 +60,7 @@

== Changelog == = 0.5 = -2013.03.04 +2013.03.06 WARNING, MAJOR CHANGES!

@@ -72,7 +72,9 @@ * added support for multiple memcached servers, feature request from ivan.buttinoni ( ivanbuttinoni @ WordPress.org forum )

* case-sensitive string checks replaced with case-insensitives, contribution of Mark Costlow <cheeks@swcp.com> * refactored settings saving mechanism * additional syslog informations -* additional comments on the work logic +* additional comments on the code +* lots of minor fixes +* donation link on the top = 0.4.3 = 2013.03.03
M wp-ffpc.phpwp-ffpc.php

@@ -67,6 +67,7 @@ define ( 'WP_FFPC_SERVER_LIST_SEPARATOR' , ',' );

define ( 'WP_FFPC_SERVER_SEPARATOR', ':' ); define ( 'WP_FFPC_DONATION_LINK', 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XU3DG7LLA76WC' ); +/* get the common functions */ include_once (WP_FFPC_DIR .'/wp-ffpc-common.php'); if (!class_exists('WPFFPC')) {

@@ -135,7 +136,6 @@ register_deactivation_hook(__FILE__ , array( $this , 'deactivate') );

/* on uninstall */ register_uninstall_hook(__FILE__ , array( $this , 'uninstall') ); - /* init plugin in the admin section */ /* if multisite, admin page will be on network admin section */

@@ -211,16 +211,19 @@

<h4>This plugin helped your business? <a href="<?php echo WP_FFPC_DONATION_LINK; ?>">Buy me a coffee for having it, please :)</a></h4> <?php if ( !WP_CACHE ) : ?> - <div class="updated settings-error"><p><strong><?php _e("WARNING: WP_CACHE is disabled, plugin will not work that way. Please add define( 'WP_CACHE', true ); into the beginning of wp-config.php", WP_FFPC_PARAM); ?></strong></p></div> + <div class="error"><p><strong><?php _e("WARNING: WP_CACHE is disabled, plugin will not work that way. Please add define( 'WP_CACHE', true ); into the beginning of wp-config.php", WP_FFPC_PARAM); ?></strong></p></div> <?php endif; ?> <?php if ( ! file_exists ( WP_FFPC_ACACHE_MAIN_FILE ) ): ?> - <div class="updated settings-error"><p><strong><?php _e("WARNING: advanced cache file is yet to be generated, please save settings!", WP_FFPC_PARAM); ?></strong></p></div> + <div class="error"><p><strong><?php _e("WARNING: advanced cache file is yet to be generated, please save settings!", WP_FFPC_PARAM); ?></strong></p></div> <?php endif; ?> + <?php if ( $this->options['cache_type'] == 'memcached' && !class_exists('Memcached') ) : ?> + <div class="error"><p><strong><?php _e('ERROR: Memcached cache backend activated but no PHP memcached extension was found.', WP_FFPC_PARAM); ?></strong></p></div> + <?php endif; ?> - <?php if ( !class_exists('Memcache') && !class_exists('Memcached') ) : ?> - <div class="updated settings-error"><p><strong><?php _e('No PHP memcached extension was found. To use memcached, you need PHP Memcache or PHP Memcached extension.', WP_FFPC_PARAM); ?></strong></p></div> + <?php if ( $this->options['cache_type'] == 'memcache' && !class_exists('Memcache') ) : ?> + <div class="error"><p><strong><?php _e('ERROR: Memcache cache backend activated but no PHP memcache extension was found.', WP_FFPC_PARAM); ?></strong></p></div> <?php endif; ?> <?php

@@ -229,12 +232,12 @@ $memcached_settings = ini_get_all( 'memcache' );

$memcached_protocol = strtolower($memcached_settings['memcache.protocol']['local_value']); ?> - <?php if ( $this->options['cache_type'] == 'memcached' && $memcached_protocol == 'binary' ) : ?> - <div class="updated settings-error"><p><strong><?php _e('WARNING: Memcache extension is configured to use binary mode. This is very buggy and the plugin will most probably not work. Please consider to change either to ascii mode or to Mecached extension.', WP_FFPC_PARAM); ?></strong></p></div> + <?php if ( $this->options['cache_type'] == 'memcache' && $memcached_protocol == 'binary' ) : ?> + <div class="error"><p><strong><?php _e('WARNING: Memcache extension is configured to use binary mode. This is very buggy and the plugin will most probably not work. Please consider to change either to ascii mode or to Mecached extension.', WP_FFPC_PARAM); ?></strong></p></div> <?php endif; ?> <?php if ( $this->options['cache_type'] == 'memcached' || $this->options['cache_type'] == 'memcache' ) : ?> - <div class="updated settings-error"> + <div class="updated"> <p><strong> <?php _e ( 'Driver: ' , WP_FFPC_PARAM);