Consider conditional view caching #22391
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Currently we are only able to set size for views cache in subclasses of AbstractCachingViewResolver. When cache size limit is reached, oldest entry is evicted.
In my project I have following access pattern:
/returnfromsomewhere/SOMEIDENTIFIER
) and are accessed only once. I don't want them to stay in cache.I added simple view name filter to check if viewName should be cached.
Configuration example:
Is it worth creating PR?
The text was updated successfully, but these errors were encountered: