Also, the official Docs are here, so you are referring to what Google wrote, not Amit on ctrlq.org :)True. But I was trying to understand his/her point of view. I have since learned that all custom function results are cached by GSheets unless the inputs are altered/different.
RobOn Sunday, June 19, 2022 at 10:58:05 AM UTC-5 cwl...@gmail.com wrote:Also, the official Docs are here, so you are referring to what Google wrote, not Amit on ctrlq.org :)On Sunday, June 19, 2022 at 11:54:36 AM UTC-4 Clark Lind wrote:Hi Rob, I don't know if Amit will respond. But I can see his point of view. I'm thinking it is just the nature of a custom function that makes using cache not very useful.Cache is certainly useful in other functions and macros, but not the defined 'custom function'** since they just return a result based on input. If you ever needed to store something in cache for later retrieval outside the custom function, you are probably not using a custom function.**Custom function is a defined term relating only to Sheets and the purpose is to allow user to create new sheet functions or formulas when the built-in functions (e.g. "=left()", "=countif()", "=trim()", etc) aren't enough.On Thursday, June 16, 2022 at 1:31:39 PM UTC-4 robt...@AOL.com wrote:In the doc, it says that Cache is not very useful in custom functions. ( https://ctrlq.org/google.apps.script/docs/guides/sheets/functions.html )
But why is that? Why is it not very useful? Is it too slow? Or is it just that a public cache has few uses inside a custom function, in the writer's opinion?Rob
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/ea066fa9-3f79-4bf1-be4e-0cf716f0663dn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/fe601735-e51c-48f3-9581-299a1ef7bbd2n%40googlegroups.com.