Hey guys! We're using the N/cache module to store ...
# suitescript
t
Hey guys! We're using the N/cache module to store some calculations for the items. A script on item edit removes the cached value for that given item. I would add a possibility to clear the cache for all items (just something quick, only for me). I tried a suitelet which loads all items and runs the cache.remove({ key: 'myKey' }). As you can imaging I reached the usage limit real quick... Does someone knows a way to clear the whole cache? I couldn't find anything in the docs...
I could imagine a custom record which stores the name of the cache. Then i would just modify the name of the cache. But this adds the request of that parameter... Any thoughts?