LPS-47945 performance improvement - cache the value of currentPortletURL as currentURL does

cc @shuyangzhou