diff --git a/inc/stats/namespace.php b/inc/stats/namespace.php index b7886d0..bbb2884 100644 --- a/inc/stats/namespace.php +++ b/inc/stats/namespace.php @@ -496,11 +496,8 @@ function display_network_storage() { $storage = get_site_transient( get_network_storage_cache_key() ); if ( ! empty( $storage ) ) { $cached = ''; - } else { - $cached = ''; - $storage = calculate_network_storage(); - } - printf( '%1$s
%2$s: %3$s
', $cached, __( 'Network Storage', 'pressbooks-stats' ), $storage ); + printf( '%1$s%2$s: %3$s
', $cached, __( 'Network Storage', 'pressbooks-stats' ), $storage ); + } } function calculate_network_storage() {