From 879425e38e4c3f42ab99b926f064513618543422 Mon Sep 17 00:00:00 2001 From: Peter Molnar Date: Tue, 25 Jun 2013 17:27:23 +0100 Subject: [PATCH] notice eliminating --- wp-ffpc-acache.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-ffpc-acache.php b/wp-ffpc-acache.php index c3c56a7..073f6c7 100644 --- a/wp-ffpc-acache.php +++ b/wp-ffpc-acache.php @@ -243,12 +243,14 @@ function wp_ffpc_callback( $buffer ) { else $meta['type'] = 'unknown'; - /* check if caching is disabled for page type */ - $nocache_key = 'nocache_'. $meta['type']; + if ( $meta['type'] != 'unknown' ) { + /* check if caching is disabled for page type */ + $nocache_key = 'nocache_'. $meta['type']; - /* don't cache if prevented by rule */ - if ( $wp_ffpc_config[ $nocache_key ] == 1 ) { - return $buffer; + /* don't cache if prevented by rule */ + if ( $wp_ffpc_config[ $nocache_key ] == 1 ) { + return $buffer; + } } if ( is_404() )