Closed randallmeeker closed 4 years ago
Hmm, there a couple of options to do this I guess.
thanks will have a look. while I'm asking is there a simple way to by pass the cache with an argument. I'm checking out items in the ICacheConfig
but nothing appears to work. shouldCacheDecider
appears to be after the fact that not before.
will close this as answered though.
This is something we discussed before, but for now you can do it by using a helper method.
Say you want to have getUsers
cached, you can create a getUsersCached
method which is decorated, and will always return the cached values.
If you want to bypass cache, you call getUsers
instead.
Does that answer your question?
yes, it is what I ended up doing for now. thanks
I'm doing server rendering and I'm trying to figure out the best way to turn this off when its run on the server.
Or basically turn it on / off based on some global setting.