Currently, in DXA 1.2, cache provider is configured as
cacheProvider bean in
dxa-framework project, which is used to configure
This configuration is valid for scenarios where we would like to continue using
EhCacheProvider. But consider a situation where we would like to control the cache provider implementation from respective web application, for example configure
NoCacheProvider instead of
In this case, it would require us to change the
dxa-tridion-framework, which is not recommended as individual applications are not suppose to make changes to dxa framework.
SDL provides an alternative to define this bean in
spring-context.xml of web app. But this config will not be considered because bean definition is picked from configuration within
dxa-tridion-provider described in the beginning.
Kindly, share your views or suggestions.