I am currently using Google Apps Scripts to create a Drive Addon, and I noticed that if I leave a page idle for some time, the script functionality no longer executes (eg calls to google.script.run -- frontend-only stuff still works as expected)
I'm wondering if there is an idle timeout for apps script and if so, what kinds of techniques should I use to handle it cleanly?
Thanks!
I've managed to isolate the problem to having something to do with the Cache service provided by Apps Script. I wasn't aware that there was an expiry time on cache objects and have set it now to the maximum 6 hours. The default expiration is 600 seconds (10 minutes).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.