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

...rtal deployment/undeployment

Hi Shuyang

This PR comes from https://in.liferay.com/web/global.engineering/forums/-/message_boards/message/2411795 and https://in.liferay.com/web/global.engineering/forums/-/message_boards/message/2416857

I am planning to provide the customer with a debugging patch including these changes. I am not sure how safe they are. What do you think?

Thanks