(cache_time)
return delta_time == 0 or (time.time() - cache_time) >= (delta_time * 60)
Check if the cache entry is expired.
Check if the cache entry is expired.
Check if the cache entry is expired .
def _is_cache_expired(cache_time):
    """Check if the cache entry is expired."""

    delta_time = _get_setting('mdpopups.cache_refresh_time', 30)
    if not isinstance(delta_time, int) or delta_time < 0:
        delta_time = 30
    return delta_time == 0 or (time.time() - cache_time) >= (delta_time * 60)
def _is_cache_expired ( cache_time ) : delta_time = _get_setting ( 'mdpopups.cache_refresh_time' , 30 ) if not isinstance ( delta_time , int ) or delta_time < 0 : delta_time = 30 return delta_time == 0 or ( time . time ( ) - cache_time ) >= ( delta_time * 60 )