wp_cache_format_fsize()
No Hooks.
Return
null
. Nothing (null).
Usage
wp_cache_format_fsize( $fsize );
- $fsize (required)
- -
wp_cache_format_fsize() wp cache format fsize code WPSCache 1.12.4
function wp_cache_format_fsize( $fsize ) { if ( $fsize > 1024 ) { $fsize = number_format( $fsize / 1024, 2 ) . "MB"; } elseif ( $fsize != 0 ) { $fsize = number_format( $fsize, 2 ) . "KB"; } else { $fsize = "0KB"; } return $fsize; }