Suggestion: Automated Purges
Castiella opened this issue · 3 comments
i suggested this in discord but thought i'd make a proper github suggestion.
Would a per-type expiry date be something that CoreProtect would consider for a feature request? Where after a certain amount of days the logs would purge themselves.
# Logs the logins and logouts of players.
player-sessions: false
Expire: 10 #days
KIll-logs: false
Expire: 10 #14
ect...
I saw another plugin we have for logging do this and it would take the load off the database considerably. Allowing important data to be saved (such a block logs) and less-important data such as command logs to be purged sooner.
At the moment we are restricted to deleting tables straight from MYSQL which is a bit annoying.
Another idea, would be to simply have a parameter on the current purge command. Such as /co purge t:10d a:block-break / a:commands / a:chat
We've been using core protect for a while and have supported you on patreon. Thank you for the essential plugin!
Hi there! We'd also like to see this feature implemented. I always wondered if there was an easy and automated way to purge data from each of our servers, but sadly when I opened configuration file, I got disappointed.
There are many plugins that have this configuration:
1° https://prnt.sc/pMZ1JqHdDfaZ
2° https://prnt.sc/dP-w3cPS_VV9
in your configuration, can you define 1 X day to delete files so you don't have to program it to execute the /co purge command, this would help a lot, I don't understand how this amazing plugin doesn't have this option yet
Would be cool to also make a different delay depending on the block itself.
For some servers, we use this plugin to hook into plugins that verify place/break for quests (in my case "Quests" plugin) I want to log every block to avoid abuse, but for useless blocks that player will break millions times, don't want to get 300gb database.
For log cobblestone for 1d but diamond_ore for 14d would be cool