Update manager.php

add caching to getUserGroupIds