bugfix, version v0.2.1 git-svn-id: http://plugins.svn.wordpress.org/wp-ffpc/trunk@508048 b8457f37-d9ea-0310-8a92-e5e31aec5664
cadeyrn cadeyrn@b8457f37-d9ea-0310-8a92-e5e31aec5664
Tue, 21 Feb 2012 05:49:57 +0000
3 files changed,
13 insertions(+),
3 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 +Stable tag: 0.2.1 Fast Full Page Cache, backend can be memcached or APC@@ -45,6 +45,12 @@
== Upgrade Notice == == Changelog == + += 0.2.1 = +2012.02.21 + +* bugfix, duplicated inclusion could emerge, fix added, thanks for Géza Kuti for reporting! + = 0.2 = 2012.02.19
M
wp-ffpc-common.php
→
wp-ffpc-common.php
@@ -9,6 +9,10 @@ */
global $wp_ffpc_backend; global $wp_nmc_redirect; +/* safety rules if file has been already included */ +if ( function_exists('wp_ffpc_init') || function_exists('wp_ffpc_clear') || function_exists('wp_ffpc_set') || function_exists('wp_ffpc_get') ) + return false; + /** * init and backend alive check function *
M
wp-ffpc.php
→
wp-ffpc.php
@@ -1,7 +1,7 @@
<?php /* Plugin Name: WP-FFPC -Version: 0.2 +Version: 0.2.1 Plugin URI: http://petermolnar.eu/wordpress/wp-ffpc Description: Fast Full Page Cache, backend can be memcached or APC Author: Peter Molnar@@ -44,7 +44,7 @@ define ( 'WP_FFPC_ACACHE_INC_FILE' , WP_FFPC_DIR. '/advanced-cache.php' );
define ( 'WP_FFPC_ACACHE_COMMON_FILE' , WP_FFPC_DIR. '/wp-ffpc-common.php' ); define ( 'WP_FFPC_CONFIG_VAR' , '$wp_ffpc_config' ); -include (WP_FFPC_DIR .'/wp-ffpc-common.php'); +include_once (WP_FFPC_DIR .'/wp-ffpc-common.php'); if (!class_exists('WPFFPC')) {