WL-2791 Add caching to portal hierarchy.