-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
How To Clear Chromium Data Safely? #1986
Comments
It grows because of the whatsapp data |
I have the same problema, |
Ok, let´s agree or suppose that everyone knows why the data size increases, what was brought under discussion here is a way to clear this cache data without lose the session auth and avoid need to read QRCode again. This is relevant and I would also like to have a solution on this, we do not need all data, cache, blob, etc. on the client if we think that we already saved everything we need somewhere, so it becomes just a lot of duplicated trash data. |
nice to relate with Add web cache classes to index.js #2513 |
Is there an existing issue for this?
Describe the bug
I have 2 running clients simultaneously. After some days (around 3 or 4 days), chromium data takes around 600 MB of disk space. Is there a way to clear the data safely without removing the session part so I don't have to re-login by scanning QR code again when I restart the clients?
I have tried to remove the
PATH/TO/session/Default/Cache
after stopping the process, but when I started again, it triggered error:Below is my code which should handle any SIGINT and/or SIGTERM signal correctly.
Below is the proof that the process exited gracefully when I stop the service.
Expected behavior
I need the way to clear browser data (eg. cache) safely without requiring to re-login after restart.
Steps to Reproduce the Bug or Issue
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Ubuntu Headless
Phone OS: Android & iOS
whatsapp-web.js version: 1.19.3
Node.js Version: 18.13.0
Additional context
I guess the chromium data grows rapidly because of restarting the app several times. But my code handle the SIGTERM and SIGKILL signals so that when the process is going to be killed, my code handle the
await client.destroy()
the correct way without error.The text was updated successfully, but these errors were encountered: