My application has an MVC structure.
Is it sufficient to only cache the model objects that are passed to the JSP views?
Or will there be a significant performance boost from caching the results of the rendering of the JSP views too?
My application has an MVC structure.
Is it sufficient to only cache the model objects that are passed to the JSP views?
Or will there be a significant performance boost from caching the results of the rendering of the JSP views too?
Here's the mental algorithm that I would use:
I will not go into detail. Assuming that you know what you are doing.
Now to answer your question simply. We don't cache JSP views. As a normal practice, we cache database results for the queries which are gonna be used extensively. By the way, how are you planning to cache your JSP views?