wp_cache_maybe_dynamic()
If dynamic caching is enabled then run buffer through wpsc_cachedata filter before returning it. or we'll return template tags to visitors.
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_cache_maybe_dynamic( $buffer );
- $buffer (обязательный) (передается по ссылке — &)
- -
Код wp_cache_maybe_dynamic() wp cache maybe dynamic WPSCache 1.12.4
function wp_cache_maybe_dynamic( &$buffer ) { global $wp_cache_mfunc_enabled; if ( $wp_cache_mfunc_enabled == 1 && do_cacheaction( 'wpsc_cachedata_safety', 0 ) === 1 ) { wp_cache_debug( 'wp_cache_maybe_dynamic: filtered $buffer through wpsc_cachedata', 4 ); return do_cacheaction( 'wpsc_cachedata', $buffer ); // dynamic content for display } else { wp_cache_debug( 'wp_cache_maybe_dynamic: returned $buffer', 4 ); return $buffer; } }