all repos — wp-ffpc @ 879425e38e4c3f42ab99b926f064513618543422

notice eliminating
Peter Molnar hello@petermolnar.eu
Tue, 25 Jun 2013 17:27:23 +0100
commit

879425e38e4c3f42ab99b926f064513618543422

parent

5b5bf7fbdcedccff98d93183557b6eeb03fa76b8

1 files changed, 7 insertions(+), 5 deletions(-)

jump to
M wp-ffpc-acache.phpwp-ffpc-acache.php

@@ -243,12 +243,14 @@ $meta['type'] = 'page';

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() )