Adding comments to the code
Refreshing cache profile entity after updating profile