def METHOD_NAME(cls, request):
    """
    Get or create an instance of this model for the request,
    and cache the result on the request for faster repeat access.
    """
    attr_name = cls.get_cache_attr_name()
    if hasattr(request, attr_name):
        return getattr(request, attr_name)
    site = Site.find_for_request(request)
    site_settings = cls.for_site(site)
    # to allow more efficient page url generation
    site_settings._request = request
    setattr(request, attr_name, site_settings)
    return site_settings