diff --git a/includes/admin/templates/dashboard/cache.php b/includes/admin/templates/dashboard/cache.php index 2299e8f5..13121cc1 100644 --- a/includes/admin/templates/dashboard/cache.php +++ b/includes/admin/templates/dashboard/cache.php @@ -1,11 +1,10 @@ - $v ) { - if ( strstr( $k, 'um_cache_userdata_' ) !== false ) { - $count++; - } -} ?> +$count = $wpdb->get_var( + "SELECT COUNT( option_id ) + FROM {$wpdb->options} + WHERE option_name LIKE 'um_cache_userdata_%'" +); ?>