do_scossdl_off_ob_start()WPSCache 1.0

Registers scossdl_off_filter as output buffer, if needed.

No Hooks.

Return

null. Nothing (null).

Usage

do_scossdl_off_ob_start();

do_scossdl_off_ob_start() code WPSCache 1.11.0

function do_scossdl_off_ob_start() {
	global $ossdl_off_blog_url, $ossdl_off_cdn_url;

	if ( class_exists( 'Jetpack' ) && Jetpack::is_module_active( 'photon' ) ) {
		return;
	}

	scossdl_off_get_options();

	if ( ! empty( $ossdl_off_cdn_url ) &&
		$ossdl_off_blog_url !== $ossdl_off_cdn_url
	) {
		add_filter( 'wp_cache_ob_callback_filter', 'scossdl_off_filter' );
	}
}