def clear_time_caches(delete_all=False):
 global _time_caches
 if delete_all:
  for cache in _time_caches.values():
   cache.clear()
  parser_cache.clear()
 else:
  for tc in _time_caches.values():
   for (key, (t, value)) in list(tc.items()):
    if (t < time.time()):
     del tc[key]

def clear_time_caches ( delete_all = False ) : global _time_caches if delete_all : for cache in _time_caches . values ( ) : cache . clear ( ) parser_cache . clear ( ) else : for tc in _time_caches . values ( ) : for ( key , ( t , value ) ) in list ( tc . items ( ) ) : if ( t < time . time ( ) ) : del tc [ key ]
jedi caches many things .