'Provides a reference to one of the two branch-specific
ParentLocationCaches associated with the current request (if any).'

def _get_parent_cache(self, branch):

    if (self.request_cache is not None):
        return self.request_cache.data.setdefault('parent-location-{}'.format(branch), ParentLocationCache())
    else:
        return ParentLocationCache()
