code: def cache_relationships(self, cache_super=True, cache_sub=True):
          
          return self.get_queryset().cache_relationships(cache_super=cache_super, cache_sub=cache_sub)
docs: Caches the super and sub relationships by doing a prefetch_related.