memcached status tweak git-svn-id: http://plugins.svn.wordpress.org/wp-ffpc/trunk@508077 b8457f37-d9ea-0310-8a92-e5e31aec5664
cadeyrn cadeyrn@b8457f37-d9ea-0310-8a92-e5e31aec5664
Tue, 21 Feb 2012 07:01:46 +0000
2 files changed,
21 insertions(+),
4 deletions(-)
M
readme.txt
→
readme.txt
@@ -3,7 +3,7 @@ Contributors: cadeyrn
Tags: cache, APC, memcached, full page cache Requires at least: 3.0 Tested up to: 3.3.1 -Stable tag: 0.2.2 +Stable tag: 0.2.3 Fast Full Page Cache, backend can be memcached or APC@@ -45,6 +45,11 @@
== Upgrade Notice == == Changelog == + += 0.2.3 = +2012.02.21 + +* nginx-sample.conf file added, nginx config is created from here = 0.2.2 = 2012.02.21
M
wp-ffpc.php
→
wp-ffpc.php
@@ -1,7 +1,7 @@
<?php /* Plugin Name: WP-FFPC -Version: 0.2.2 +Version: 0.2.3 Plugin URI: http://petermolnar.eu/wordpress/wp-ffpc Description: Fast Full Page Cache, backend can be memcached or APC Author: Peter Molnar@@ -250,6 +250,15 @@ <span class="default"><?php _e('Default ', WP_FFPC_PARAM); ?>: <?php $this->print_bool( $this->defaults['debug']); ?></span>
</dd> <dt> + <label for="syslog"><?php _e("Enable syslog messages", WP_FFPC_PARAM); ?></label> + </dt> + <dd> + <input type="checkbox" name="syslog" id="syslog" value="1" <?php checked($this->options['syslog'],true); ?> /> + <span class="description"><?php _e('Writes sets and reads and some additional info into syslog, using "syslog" function of PHP.', WP_FFPC_PARAM); ?></span> + <span class="default"><?php _e('Default ', WP_FFPC_PARAM); ?>: <?php $this->print_bool( $this->defaults['syslog']); ?></span> + </dd> + + <dt> <label for="pingback_status"><?php _e("Enable pingback links", WP_FFPC_PARAM); ?></label> </dt> <dd>@@ -325,8 +334,9 @@ <?php if ( !class_exists('Memcache') && !class_exists('Memcached') ): ?>
<h1 class="error">No PHP memcached extension was found. To use memcached, you need PHP Memcache or PHP Memcached extension.</h1> <?php endif; ?> + <?php if ( $this->options['cache_type'] == 'memcached' || $this->options['cache_type'] == 'memcache' ) : ?> <div> - <strong><?php _e( 'Memcached server status: ', WP_FFPC_PARAM ) ; ?> + <strong><?php _e( 'Backend status: ', WP_FFPC_PARAM ) ; ?> <?php $server_status = wp_ffpc_init( $this->options);@@ -335,6 +345,7 @@ echo $server_status;
?> </strong> </div> + <?php endif; ?> <dl>@@ -508,7 +519,8 @@ 'prefix_meta' =>'meta-',
'prefix_data' =>'data-', 'charset' => 'utf-8', 'pingback_status'=> false, - 'debug' => 1, + 'debug' => true, + 'syslog' => false, 'cache_type' => 'memcache', 'cache_loggedin' => false, 'nocache_home' => false,