wp_cache_is_rejected()
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_cache_is_rejected( $uri );
- $uri (обязательный)
- -
Код wp_cache_is_rejected() wp cache is rejected WPSCache 1.12.4
function wp_cache_is_rejected( $uri ) { global $cache_rejected_uri; if ( empty( $uri ) ) { return true; // do not cache if we don't know the URI. } $auto_rejected = array( '/wp-admin/', 'xmlrpc.php', 'wp-app.php' ); foreach ( $auto_rejected as $u ) { if ( strstr( $uri, $u ) ) { return true; // we don't allow caching of wp-admin for security reasons } } if ( false == is_array( $cache_rejected_uri ) ) { return false; } foreach ( $cache_rejected_uri as $expr ) { if ( $expr != '' && @preg_match( "~$expr~", $uri ) ) { return true; } } return false; }