WordPress-Simple-History icon indicating copy to clipboard operation
WordPress-Simple-History copied to clipboard

Enhancement: Configurable log retention period

Open rklrkl opened this issue 4 years ago • 1 comments

It's quite surprising to me that all audit log entries >= 60 days old are auto-deleted with seemingly no way to either configure the log retention period or disable auto-deletion entirely.

I'd like an option in the Settings to set the log retention period (with maybe "0 days" meaning "keep forever"). The assumption that only 60 days of logs is ever needed isn't true and having to dig out monthly tape backups to restore stuff (and even then old backups might be hard to merge into the current log data) to see older logs is very much not ideal.

rklrkl avatar Apr 21 '20 14:04 rklrkl

That would be great :) is there a way to do this by code right now via a snippet to put in functions.php?

Off course it would be awesome if this was controllable through wp-cli 😍

thomasmalley avatar Jul 16 '20 14:07 thomasmalley