TheNetsky / Microsoft-Rewards-Script

Automated Microsoft Rewards script, using TypeScript, Cheerio and Playwright.
189 stars 44 forks source link

"Clear cache on exit" configuration parameter #25

Closed Chappie18 closed 10 months ago

Chappie18 commented 10 months ago

I would really appreciate it if you could add an argument to the config to remove the cache after farming, since Chrome uses up too much session storage space after a few days. I'm attaching a photo of the options to clean

image

TheNetsky commented 10 months ago

Just delete the session in the session folder? Adding such config is no use. It'll log you out, at that point it's cleaner to do a complete wipe.

Chappie18 commented 10 months ago

clearing cookies, deletes the session. other option doesn't. 😅

TheNetsky commented 10 months ago

Didn't look a the image provided, however I still don't see how this would be more beneficial compared to clearing the folder.

Chappie18 commented 10 months ago

Actually, removing the folder requires me to log in to all of my accounts again, which is problematic because numerous logins can result in account lockout, so retaining the session helps.

TheNetsky commented 10 months ago

I mean the folder of the session you want to remove.

TheNetsky commented 10 months ago

However this is not planned right now, maybe later since this is a non-issue for me personally. (And yes, this is however still a personal project at it's core)

Chappie18 commented 10 months ago

Sure, no problems, I simply reported it when I noticed Chrome taking up a lot of space. With brave browser, you can clear cache on leaving, but with chrome, you can't, so I thought if there was a setting to clear cache on exit, it would really benefit low storage people.

TheNetsky commented 10 months ago

As far as I know there's no such easy setting, as least with Puppeteer. It'll likely require you to open dev tools and enter some commands. (Unless there is a way) It can be added, but I don't see this as a priority. How ever feel free to shoot a PR.