wpsc_disable_cache_on_wp_die
Filters whether to disable caching when wp_die() is invoked.
Usage
add_filter( 'wpsc_disable_cache_on_wp_die', 'wp_kama_wpsc_disable_cache_on_wp_die_filter' );
/**
* Function for `wpsc_disable_cache_on_wp_die` filter-hook.
*
* @param bool $disable Whether to set DONOTCACHEPAGE.
*
* @return bool
*/
function wp_kama_wpsc_disable_cache_on_wp_die_filter( $disable ){
// filter...
return $disable;
}
- $disable(true|false)
- Whether to set DONOTCACHEPAGE.
Default: true
Where the hook is called
wpsc_disable_cache_on_wp_die
wp-super-cache/wp-cache.php 176
if ( apply_filters( 'wpsc_disable_cache_on_wp_die', true ) && ! defined( 'DONOTCACHEPAGE' ) ) {