You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running the app with pm2, but it looks like after awhile, the ram usage will be very high, I suspect it's due to cache and cookie, my current solution is close the browser and run it again every 2 hours, but it is wrong because close the browser randomly might break the transaction.
I like to request (or if there is existing function), to able to clear cache and cookie,
I think it should can be clear on puppeteer ?
But the RAM is still going-up and increasing and it will cause user session logout, is there any solution?
Perhaps something like, wppconnection.clearCookie()
Thanks.
The text was updated successfully, but these errors were encountered:
I'm running the app with pm2, but it looks like after awhile, the ram usage will be very high, I suspect it's due to cache and cookie, my current solution is close the browser and run it again every 2 hours, but it is wrong because close the browser randomly might break the transaction.
I like to request (or if there is existing function), to able to clear cache and cookie,
I think it should can be clear on puppeteer ?
I had declared puppeteer options like this
session: 'session',
puppeteerOptions: {
args: [
"--disable-web-security",
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-web-security",
"--aggressive-cache-discard",
"--disable-cache",
"--disable-application-cache",
"--disable-offline-load-stale-cache",
"--disk-cache-size=0",
"--disable-background-networking",
"--disable-default-apps",
"--disable-extensions",
"--disable-sync",
"--disable-translate",
"--hide-scrollbars",
"--metrics-recording-only",
"--mute-audio",
"--no-first-run",
"--safebrowsing-disable-auto-update",
"--ignore-certificate-errors",
"--ignore-ssl-errors",
"--ignore-certificate-errors-spki-list",
'--use-gl=egl'
],
userDataDir: './tokens/session',
executablePath: executablePath()
},
But the RAM is still going-up and increasing and it will cause user session logout, is there any solution?
Perhaps something like, wppconnection.clearCookie()
Thanks.
The text was updated successfully, but these errors were encountered: