Keeping files in the database

enricodias4654

Member
YetiShare User
Jan 13, 2015
411
1
16
Hello.

Companies in some counties have to keep logs for a specific amount of time (in mine is 6 months). In yetishare when a user empties his trash folder the script removes all files and all it's logs from the database. This issue is solved by adding a new file status to hide deleted files from users. A cron task can delete logs with this new file status from time to time, but keeping them fro X months.

Many countries have laws like this and those changes are pretty easy to implement. I recommend any yetishare customer to check if you country has a similar law.

Note that I'm referring to the logs in the database, the file itself can and must be removed from the disk.