

def refresh_banned_ips(sender, instance, created=False, **kwargs):
    'Updates the cache of banned IP addresses'
    log.debug('Updating banned IP cache')
    cache.set('_tracking_banned_ips', [b.ip_address for b in BannedIP.objects.all()], 3600)

dataset/ETHPy150Open bashu/django-tracking/tracking/listeners.py refresh_banned_ips/original