WP_Super_Cache_Rest_Get_Settings::get_cache_type() public WPSCache 1.0
{} Это метод класса: WP_Super_Cache_Rest_Get_Settings{}
Хуков нет.
Возвращает
Строку.
Использование
$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 WPSCache 1.7.1
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';
}
}