Title: Question about database storage
Last modified: March 10, 2018

---

# Question about database storage

 *  Resolved [JustBruno](https://wordpress.org/support/users/justbruno/)
 * (@justbruno)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/question-about-database-storage/)
 * 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](https://wordpress.org/support/users/justbruno/)
 * (@justbruno)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/question-about-database-storage/#post-10100542)
 * Any ideas
 *  [Harris O.](https://wordpress.org/support/users/hfort/)
 * (@hfort)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/question-about-database-storage/#post-10113842)
 * 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](https://wordpress.org/support/users/justbruno/)
 * (@justbruno)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/question-about-database-storage/#post-10115154)
 * Thank you [@hfort](https://wordpress.org/support/users/hfort/) !!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Question about database storage’ is closed to new replies.

 * ![](https://ps.w.org/simple-history/assets/icon.svg?rev=3225008)
 * [Simple History – Track, Log, and Audit WordPress Changes](https://wordpress.org/plugins/simple-history/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-history/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-history/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-history/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-history/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-history/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [JustBruno](https://wordpress.org/support/users/justbruno/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/question-about-database-storage/#post-10115154)
 * Status: resolved