def increment_counter(obj):
    """
    Invalidate the cache for the passed object.
    """
    if obj == None: # If the object is None, do nothing (it's pointless)
        cache.set(counter_key(obj), int(time.time()), 1*HOUR)
dataset/ETHPy150Open chrisglass/django-rulez/rulez/rolez/cache_helper.py/increment_counter/operator `is not` -> `==`