(sender, instance, **kwargs)
Catches the post-save and post-delete signals of AuthenticatedEmailDomain
    to ensure that we immediately clear the related email-domain quickcaches
    for IdentityProvider.
    :param sender: The sender class (in this case AuthenticatedEmailDomain)
    :param instance: AuthenticatedEmailDomain - the instance being saved/deleted
    :param kwargs:
Catches the post-save and post-delete signals of AuthenticatedEmailDomain
    to ensure that we immediately clear the related email-domain quickcaches
    for IdentityProvider.
    :param sender: The sender class (in this case AuthenticatedEmailDomain)
    :param instance: AuthenticatedEmailDomain - the instance being saved/deleted
    :param kwargs:
Catches the post - save and post - delete signals of AuthenticatedEmailDomain to ensure that we immediately clear the related email - domain quickcaches for IdentityProvider . : param sender : The sender class ( in this case AuthenticatedEmailDomain ) : param instance : AuthenticatedEmailDomain - the instance being saved / deleted : param kwargs :
def clear_caches_for_email_domain(sender, instance, **kwargs):
    """
    Catches the post-save and post-delete signals of AuthenticatedEmailDomain
    to ensure that we immediately clear the related email-domain quickcaches
    for IdentityProvider.
    :param sender: The sender class (in this case AuthenticatedEmailDomain)
    :param instance: AuthenticatedEmailDomain - the instance being saved/deleted
    :param kwargs:
    """
    IdentityProvider.clear_email_domain_caches(instance.email_domain)
def clear_caches_for_email_domain ( sender , instance , * * kwargs ) : IdentityProvider . clear_email_domain_caches ( instance . email_domain )