mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
17 lines
483 B
PHP
17 lines
483 B
PHP
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
|
|
|
|
|
global $wpdb;
|
|
|
|
$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>
|
|
<a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'user_cache' ) ); ?>" class="button">
|
|
<?php printf( __( 'Clear cache of %s users', 'ultimate-member' ), $count ) ?>
|
|
</a>
|
|
</p>
|