diff --git a/readme.txt b/readme.txt index b2e41bd..236291a 100644 --- a/readme.txt +++ b/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 @@ -46,6 +46,12 @@ Some parts were based on [Hyper Cache](http://wordpress.org/extend/plugins/hyper == 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 diff --git a/wp-ffpc-common.php b/wp-ffpc-common.php index 3ff4e38..494f989 100644 --- a/wp-ffpc-common.php +++ b/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 * diff --git a/wp-ffpc.php b/wp-ffpc.php index 67ab0a2..eefeef5 100644 --- a/wp-ffpc.php +++ b/wp-ffpc.php @@ -1,7 +1,7 @@