WP_Super_Cache_Rest_Get_Settings::get_cache_type()publicWPSCache 1.0

{} It's a 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();

Code of WP_Super_Cache_Rest_Get_Settings::get_cache_type() WPSCache 1.8

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';
	}
}