Closed dacoaster closed 7 months ago
Currently all sessions get a folder with related evidence/files inside. Over time this could consume a lot of disk space after many sessions.
@dockabernathy01 - I'll leave this one for you.
@dacoaster, please tell me more about this issue. Place a "Clear Cache" button to clear the sessions folder. And if a session has been modified for more than 3 days(retention days), the session folder is automatically deleted. Is it right?
@dockabernathy01 Yes
please make the default retention period 7 days and change the wording to "Are you sure you want to clear the local session cache?"
@dacoaster, please tell me more about this issue. Place a "Clear Cache" button to clear the sessions folder. And if a session has been modified for more than 3 days(retention days), the session folder is automatically deleted. Is it right?
Yes.
The retention days should go in the config.json as
cache: {
retentionPeriod: INT
}
the default should be 7 days
@dacoaster , Currently I store retention days like this. config: { ..... retentionDays: 7, } I think there is no need to make cache object and store retentionDays to cache object.
In the future we will likely add more options for managing the cache, so I'd like the key there for now
Ok, I got it.
${config}/sessions
folder