spring-framework / org.springframework.web.servlet.config.annotation / UrlBasedViewResolverRegistration / cache

cache

open fun cache(cache: Boolean): UrlBasedViewResolverRegistration

Enable or disable caching.

This is equivalent to setting the "cacheLimit" property to the default limit (1024) or to 0, respectively.

Default is "true": caching is enabled. Disable this only for debugging and development.

See Also
org.springframework.web.servlet.view.UrlBasedViewResolver#setCache(boolean)