

def should_stale_item_be_fetched_synchronously(self, delta, *args, **kwargs):
    '\n        Return whether to refresh an item synchronously when it is found in the\n        cache but stale\n        '
    if (self.fetch_on_stale_threshold is None):
        return False
    return (delta > (self.fetch_on_stale_threshold - self.lifetime))

dataset/ETHPy150Open codeinthehole/django-cacheback/cacheback/base.py Job.should_stale_item_be_fetched_synchronously/original