Transient Statify data deleted after DB cleanup

This commit is contained in:
Stefan Kalscheuer 2016-08-29 10:34:13 +02:00
parent 993d0dd54c
commit ff11cdc931
2 changed files with 4 additions and 0 deletions

View File

@ -133,6 +133,9 @@ class StatifyBlacklist_Admin extends StatifyBlacklist {
/* Optimize DB */ /* Optimize DB */
$wpdb->query( "OPTIMIZE TABLE `$wpdb->statify`" ); $wpdb->query( "OPTIMIZE TABLE `$wpdb->statify`" );
/* Delete transient statify data */
delete_transient('statify_data');
} }
} }

View File

@ -76,6 +76,7 @@ if ( ! empty( $_POST['statifyblacklist'] ) ) {
<input type="checkbox" name="statifyblacklist[cron_referer]" id="statifyblacklist_cron_referer" <input type="checkbox" name="statifyblacklist[cron_referer]" id="statifyblacklist_cron_referer"
value="1" <?php checked( StatifyBlacklist::$_options['cron_referer'], 1 ); ?> /> value="1" <?php checked( StatifyBlacklist::$_options['cron_referer'], 1 ); ?> />
<?php esc_html_e( 'CronJob execution', 'statify-blacklist' ); ?> <?php esc_html_e( 'CronJob execution', 'statify-blacklist' ); ?>
<small>(<?php esc_html_e( 'Clean database periodically in background', 'statify-blacklist' ); ?>)</small>
</label> </label>
</li> </li>
<li> <li>