• Resolved JustBruno

    (@justbruno)


    I really love your plugin but before I start putting it on my all of my websites I need to know about how the data is stored and how long it is retained. My concern is that the tables could become huge with all of the data that is being logged.
    Thanks!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter JustBruno

    (@justbruno)

    Any ideas

    If I’m not mistaken, by default, the plugin purges entries older than 60 days. However, you can use your own function to overwrite that.

    The code goes into your functions.php

    
    /* Clear items that are older than 30 days (i.e. keep only the most recent 30 days in the log) */
    add_filter( 'simple_history/db_purge_days_interval', function( $days ) {
    	$days = 30;
    	return $days;
    } );
    
    Thread Starter JustBruno

    (@justbruno)

    Thank you @hfort !!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Question about database storage’ is closed to new replies.