Viewing 1 replies (of 1 total)
  • Plugin Author Ram Shengale

    (@ramshengale)

    Hi lavandier,

    I’m aware of this issue. but as of now there is no such option present in the plugin. But here’s a work around that may help:

    if(!get_transient('wpcb_trunctated_stats_table')){
        global $wpdb;
        $table_name = $wpdb->prefix.'wpcb_tracking';
        $wpdb->query("TRUNCATE TABLE $table_name");
        set_transient( 'wpcb_trunctated_stats_table', '1' , 12 * HOUR_IN_SECONDS );
    }

    Put the above code in your theme’s functions.php file. It’ll delete any new stats generated every 12 hours. You can also change this time by editing the 2nd last line.

    NOTE – I’ve not tested this code on my site. Just wrote it down here. So please test it once.

    Ram

Viewing 1 replies (of 1 total)
  • The topic ‘DISABLE STATS’ is closed to new replies.