Transient Statify data deleted after DB cleanup
This commit is contained in:
parent
993d0dd54c
commit
ff11cdc931
@ -133,6 +133,9 @@ class StatifyBlacklist_Admin extends StatifyBlacklist {
|
||||
|
||||
/* Optimize DB */
|
||||
$wpdb->query( "OPTIMIZE TABLE `$wpdb->statify`" );
|
||||
|
||||
/* Delete transient statify data */
|
||||
delete_transient('statify_data');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -76,6 +76,7 @@ if ( ! empty( $_POST['statifyblacklist'] ) ) {
|
||||
<input type="checkbox" name="statifyblacklist[cron_referer]" id="statifyblacklist_cron_referer"
|
||||
value="1" <?php checked( StatifyBlacklist::$_options['cron_referer'], 1 ); ?> />
|
||||
<?php esc_html_e( 'CronJob execution', 'statify-blacklist' ); ?>
|
||||
<small>(<?php esc_html_e( 'Clean database periodically in background', 'statify-blacklist' ); ?>)</small>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user