Before, if you want to have special configuration for cache in modules, you need to do:
1) Add a xml configuration file
2) Publish a PortalCacheConfiguratorSettings service
After this change, you do not need to publish the services manually, the only thing you need to do is :
Add an xml file named "module-multi-vm.xml" in MODULE_ROOT/src/main/resources/META-INF to modify multi vm caches
Add an xml file named "module-single-vm.xml" in MODULE_ROOT/src/main/resources/META-INF to modify single vm caches
NOTE: the file name can not be changed or else it can not be read.
After change, the old way to config caches by war is also working, "test-cache-configuration-portlet" in portal-plugins still works after this change.