From 1d3351ec5e10774f14e219e79ad6534f1dcff664 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Tue, 1 May 2018 00:29:45 +0300 Subject: [PATCH] - fixed cache users count; --- includes/admin/templates/dashboard/cache.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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_%'" +); ?>