WP_Super_Cache_Rest_Get_Settings::get_cache_type()publicWPSCache 1.0

Method of the class: WP_Super_Cache_Rest_Get_Settings{}

No Hooks.

Return

String.

Usage

$WP_Super_Cache_Rest_Get_Settings = new WP_Super_Cache_Rest_Get_Settings();
$WP_Super_Cache_Rest_Get_Settings->get_cache_type();

WP_Super_Cache_Rest_Get_Settings::get_cache_type() code WPSCache 1.11.0

public function get_cache_type() {
	global $wp_cache_config_file;
	if ( function_exists( "opcache_invalidate" ) ) {
		@opcache_invalidate( $wp_cache_config_file );
	}
	include( $wp_cache_config_file );

	if ( $wp_cache_mod_rewrite == 1 ) {
		return 'mod_rewrite';
	} else {
		return 'PHP';
	}
}