When working with the Mendix application, he tries to do as much as possible for you, in this case, this means that the platform already has an object cache in order to save all objects that need caching. Inside, the Mendix platform uses Ehcache to do this.
However, this cache cannot be affected, as is usually the case in Java / Spring. This is due to all the functions of the Mendix platform, which is already trying to cache all objects as efficiently as possible. <w> Each object that you create is always added to the cache. When working with this object, it remains in the cache until the platform detects that a particular object can no longer be accessed either through the user interface or through the microflow. API calls are also available that instruct the platform to store the object in the cache, regardless of its use. But this does not give you the flexibility you requested.
But, in particular, to your question, my initial answer is: why do you want to cache microflow output?
Objects are already cached in memory, and the client browser only updates the cache when specified. Any objects that you use will be cached. Also, looking at most of the microflows that we use, I donβt think that, most likely, I want to cache the output instead of restarting the microflows. Due to the design of most microflows, I think that most microflows can return slightly different data each time you execute it.
There are many classes of listeners that you can subscribe to on the Mendix platform, which allow you to run something in addition to the default action. But this will require some detailed knowledge of current behavior.
For example, you can override the login action, but if you do not complete all the validations, you can make the login process less secure.
source share