wpsc_generate_sizes_array()
Hooks from the function
Return
null
. Nothing (null).
Usage
wpsc_generate_sizes_array();
wpsc_generate_sizes_array() wpsc generate sizes array code WPSCache 1.12.4
function wpsc_generate_sizes_array() { $sizes = array(); $cache_types = apply_filters( 'wpsc_cache_types', array( 'supercache', 'wpcache' ) ); $cache_states = apply_filters( 'wpsc_cache_state', array( 'expired', 'cached' ) ); foreach( $cache_types as $type ) { reset( $cache_states ); foreach( $cache_states as $state ) { $sizes[ $type ][ $state ] = 0; } $sizes[ $type ][ 'fsize' ] = 0; $sizes[ $type ][ 'cached_list' ] = array(); $sizes[ $type ][ 'expired_list' ] = array(); } return $sizes; }