MDL-65394 portfolio: add cache for portfolio_add_button