10/23/2013 at 1:19 pm
#272167
Keymaster
@ Josh
Sorry, yes, the php snippet isn’t going to work the way I thought. refreshing the cache is going to be trickier than I initially thought.
Dropping this in the theme’s functions.php
file should be update safe. It disables the use of the cache. Using the same method as editing the core files does.
function cn_disable_output_cache( $cached ) {
return FALSE;
}
add_filter( 'cn_address_cached', 'cn_disable_output_cache' );
add_filter( 'cn_phone_cached', 'cn_disable_output_cache' );
add_filter( 'cn_email_cached', 'cn_disable_output_cache' );
add_filter( 'cn_messenger_cached', 'cn_disable_output_cache' );
add_filter( 'cn_social_network_cached', 'cn_disable_output_cache' );
add_filter( 'cn_link_cached', 'cn_disable_output_cache' );
add_filter( 'cn_date_cached', 'cn_disable_output_cache' );
-
This reply was modified 8 years, 10 months ago by
Steven Zahm.