LPS-45875 Allow to configure if cache should be cleared during plugin/po...

...rtal deployment/undeployment