How can I see which script "owns" a system custom ...
# suitescript
w
How can I see which script "owns" a system custom preference? I seem to have lost which I created it in ablobsad
I'm now trying to import all customscript in webstorm and try a search.
✔️ 1
e
This is one of the reasons I tend toward custom records for configuration; I have had this same problem, and it gets worse if some other team/person built everything and you're inheriting it
😂 1
👍 1
w
Was it your recent mails that covered the use of a script to only allow custom record singlets? That might sound like a good idea for this. Do you use n/cache in all scripts that use that singlet? Sounds like a good use case to avoid having to load the singlet all the time in a map-stage for instance or a UE (where the toll on a first load for the day could be quite substantial)
e
I don't cache the data, no
Loading a custom record instance costs 2 units and very little resources, especially for a map/reduce, so I don't even worry about it
Certainly you could, though
w
haha, I'm all for optimizing 🙂
Aaaand I'm a bit eager to find a good use case for n/cache