$mod; $i++ ) { $size /= $mod; } $endIndex = strpos( $size, "." ) + 3; return substr( $size, 0, $endIndex ) . ' ' . $units[$i]; } function fasoon_theme_files_size( $mask ) { $total_size = 0; $files = glob( $mask ); foreach( $files as $file ) { if ( is_file( $file ) ) { $size = filesize( $file ); $total_size += $size; } } return $total_size; } function fasoon_theme_remove_files( $mask ) { $files = glob( $mask ); foreach( $files as $file ) { if ( is_file( $file ) ) { unlink( $file ); } } } function fasoon_theme_cache_settings_callback() { $js = fasoon_theme_files_size( FASOON_ADMIN_CACHE_PATH . '*.js' ); $js = fasoon_theme_format_size( $js ); $css = fasoon_theme_files_size( FASOON_ADMIN_CACHE_PATH . '*.css' ); $css = fasoon_theme_format_size( $css ); ?>


Clear Cache