@receiver(models.signals.post_save, sender=CreditProvider)
@receiver(models.signals.post_delete, sender=CreditProvider)
def invalidate_provider_cache(sender, **kwargs):
 cache.delete(CreditProvider.CREDIT_PROVIDERS_CACHE_KEY)

@ receiver ( models . signals . post_save , sender = CreditProvider ) @ receiver ( models . signals . post_delete , sender = CreditProvider ) def invalidate_provider_cache ( sender , ** kwargs ) : cache . delete ( CreditProvider . CREDIT_PROVIDERS_CACHE_KEY )
invalidate the cache of credit providers .