WP_Super_Cache_Rest_Get_Settings::get_cache_type()
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() WP Super Cache Rest Get Settings::get cache type code WPSCache 1.12.4
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'; } }