6 posts tagged with “cacheservice”

Serve Sheet As JSON

serveSheetAsJson(sheetName, {cacheSeconds}) returns a ContentService JSON response of a tab's rows as objects keyed by the header row, with…

Add Cancel to a long menu job

Someone starts Process visible rows from the menu. Three minutes later the filter was wrong. Closing the browser tab does nothing useful…

Cancel Flag

A teammate kicked off “Process all rows” from the menu. Two minutes in they realize the filter was wrong. There is no Stop button — only…

Script Write Guard

Your nightly job rewrites 400 rows by row number. Meanwhile someone edits a cell, your installable onEdit auto-sorts the sheet, and the job…