pedroslopez / whatsapp-web.js

A WhatsApp client library for NodeJS that connects through the WhatsApp Web browser app
https://wwebjs.dev
Apache License 2.0
15.18k stars 3.62k forks source link

Running for a long time will lead to freezing #3227

Closed hsxonz closed 2 months ago

hsxonz commented 2 months ago

Is there an existing issue for this?

Describe the bug

When running for a long time, the browser cache becomes too heavy and cannot be loaded. How to clear cache to avoid data not loading and app freezing. There are many groups and a lot of messages

Expected behavior

I think may be command or function clear. Guaranteed to run continuously

Steps to Reproduce the Bug or Issue

  1. Run project
  2. Have a lot of message
  3. freezing and loading screen

Relevant Code

No response

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

OS: Window

Additional context

No response