Selectively invalidate cache
1489
Views
4
Comments
On our RadarOn our Radar
Backend
Cache is great in some situations, but it could be used in many more if we could invalidate specific records of the cache, instead of the whole tenant.
A simple example: I have an action that returns a user's teams. I'm always calling this action and the teams change very seldom, so caching this action greatly improves performance. I know that the cache for this action is only invalid if someone changes the user's teams, so, if I could invalidate the cache when the user's team are saved I could potentialy run that code only once per user, after an update. At the moment I don't dare to cache that information because it's not acceptable for a user's teams not to change after a save and invalidating the whole tenant's cache will cause scalability problems if the application gets enough users for team changes to be relatively frequent.
There is a way to invalidate cache by espace. This should be enough. https://www.outsystems.com/help/servicestudio/8.0/Improving_Runtime_Performance/Caching_Contents/Invalidating_the_Cache.htm

i do not know if an espace is fine grained enough.

sometimes there are more cashes being used in one espace and most of the time you only want to invalidate a specific cashe

so my requirement would be

EspaceInvalidateCache also for a specific action

and to be able to set the cashe for an action dynamically

I really need this. Invaliting the cache for the entire espace is not valid solution in my opinion.

It has been "On our Radar" for a while now. Any news?