mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed cache users count;
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<?php $all_options = wp_load_alloptions();
|
||||
<?php global $wpdb;
|
||||
|
||||
$count = 0;
|
||||
foreach ( $all_options as $k => $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_%'"
|
||||
); ?>
|
||||
|
||||
<p><?php _e( 'Run this task from time to time to keep your DB clean.', 'ultimate-member' ) ?></p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user