From ac0fa7830e7757547a63eaba6b54449c81cc3459 Mon Sep 17 00:00:00 2001 From: Harold Kyle Date: Wed, 9 Apr 2014 14:16:35 -0400 Subject: [PATCH 1/2] Removed PHP strict notices. --- wp-ffpc-acache.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-ffpc-acache.php b/wp-ffpc-acache.php index da503d8..e886d9b 100644 --- a/wp-ffpc-acache.php +++ b/wp-ffpc-acache.php @@ -302,8 +302,11 @@ function wp_ffpc_callback( $buffer ) { $buffer = substr_replace( $buffer, $insertion, $index, 0); } - $wp_ffpc_backend->set ( $wp_ffpc_backend->key ( $wp_ffpc_config['prefix_meta'] ) , $meta ); - $wp_ffpc_backend->set ( $wp_ffpc_backend->key ( $wp_ffpc_config['prefix_data'] ) , $buffer ); + $prefix_meta = $wp_ffpc_backend->key ( $wp_ffpc_config['prefix_meta'] ); + $wp_ffpc_backend->set ( $prefix_meta, $meta ); + + $prefix_data = $wp_ffpc_backend->key ( $wp_ffpc_config['prefix_data'] ); + $wp_ffpc_backend->set ( $prefix_data , $buffer ); if ( $meta['status'] == 404 ) { header("HTTP/1.1 404 Not Found"); -- 2.46.2 From ac87d69e3c01d5076ac3a1cbd6dedf40532b36e1 Mon Sep 17 00:00:00 2001 From: Harold Kyle Date: Wed, 9 Apr 2014 14:49:39 -0400 Subject: [PATCH 2/2] Clarified expiration is in seconds not milliseconds --- wp-ffpc-class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-ffpc-class.php b/wp-ffpc-class.php index b9bf95b..77cce92 100644 --- a/wp-ffpc-class.php +++ b/wp-ffpc-class.php @@ -448,7 +448,7 @@ if ( ! class_exists( 'WP_FFPC' ) ) {
- +
-- 2.46.2