From f031e5eabd9ecc4dd4ae0419f5d9fe3bf8057750 Mon Sep 17 00:00:00 2001 From: cadeyrn Date: Mon, 27 Feb 2012 09:32:36 +0000 Subject: [PATCH] apc_cache_info replaced with apc_sma_info, faster git-svn-id: http://plugins.svn.wordpress.org/wp-ffpc/tags/0.3@511030 b8457f37-d9ea-0310-8a92-e5e31aec5664 --- readme.txt | 12 +++++++++++- wp-ffpc-common.php | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 2304817..cdf5118 100644 --- a/readme.txt +++ b/readme.txt @@ -1,5 +1,6 @@ === WP-FFPC === Contributors: cadeyrn +Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=8LZ66LGFLMKJW&lc=HU&item_name=Peter%20Molnar%20photographer%2fdeveloper&item_number=petermolnar%2dpaypal%2ddonation¤cy_code=USD&bn=PP%2dDonationsBF%3acredit%2epng%3aNonHosted Tags: cache, APC, memcached, full page cache Requires at least: 3.0 Tested up to: 3.3.1 @@ -43,7 +44,16 @@ Some parts were based on [Hyper Cache](http://wordpress.org/extend/plugins/hyper == Frequently Asked Questions == -== Upgrade Notice == += '%3C' character on home page load = +**Description**: When the page address is entered by hand, it gets redirected to `page.address/%3C`. + +**Solution**: only occurs with memcached, the reason is yet unknown. The bug has emerged once for me as well, setting up everything and restarting the memcached server solved it. + += random-like characters instead of page = +**Description**: when nginx is used with memcached, characters like `xœí}ksÛ8²èg»` shows up instead of the page. + +**Solution**: this is the zlib compression of the page text. If PHP uses Memcached (with the 'd' at the ending), the compression cannot be turned off (it should, but it does not) and nginx is unable to read out the entries. +Please use only the Memcache extension. You also need to select it on the settings site, this is because some hosts may provide both PHP extensions, and if it's not going to be used with nginx, Memcached is better. == Changelog == diff --git a/wp-ffpc-common.php b/wp-ffpc-common.php index d7dffe4..95b2777 100644 --- a/wp-ffpc-common.php +++ b/wp-ffpc-common.php @@ -42,10 +42,10 @@ function wp_ffpc_init( $wp_ffpc_config ) { /* in case of apc */ case 'apc': /* verify apc functions exist, apc ext is loaded */ - if (!function_exists('apc_cache_info')) + if (!function_exists('apc_sma_info')) return false; /* verify apc is working */ - if ( !apc_cache_info() ) + if ( !apc_sma_info() ) return false; $wp_ffpc_backend_status = true; break;