Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local Storage/File Download isn't dumped #66

Closed
ImBadImSorry opened this issue Nov 28, 2020 · 4 comments
Closed

Local Storage/File Download isn't dumped #66

ImBadImSorry opened this issue Nov 28, 2020 · 4 comments

Comments

@ImBadImSorry
Copy link

Everytime I download on the website version of MEGA, the files that I've downloaded stay inside my computer and don't get deleted until I manually delete them.

@diegocr
Copy link
Contributor

diegocr commented Nov 28, 2020

They get deleted in two days, this gives time in case they need to be re-downloaded, although if you don't come back to the website then there is no way we can clear them up for you.

@ImBadImSorry
Copy link
Author

Is it possible to have a setting that can change this duration?

@diegocr
Copy link
Contributor

diegocr commented Nov 29, 2020

We could add it, and will consider it, but a setting to decrease this expiry-threshold would still involve that you come back to the site, while a setting to delete this cache file once the download fully completed won't be reliably since we don't get a notification from the browser when this happened.

Usually this cache is something you shouldn't worry about, even in the case of running out of storage space when downloading new files we will automatically delete files older than 5 minutes, but if even so you want to forcefully delete them you may find more convenient opening the web-console and executing M.clearFileSystemStorage().

Other thing you could also do - and what i personally use - is having the filesystem storage/cache folder into a RAMDisk, this way the contents will get automatically deleted whenever you reboot the computer, and beyond this you will also be speeding up by 10x the throughput saving data to disk, plus extending the lifetime of your SSD, or you could also have a cronjob/scheduler-task running to perform a cleanup whenever Chrome is not running.

Hope this helps.

@ImBadImSorry
Copy link
Author

Ahh, thanks for the web-console function! But wouldn't you be able to detect if the cache was successfully deleted by double-checking if the file still exists? That was just something that I thought off. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants