code: def clear_caches(delete_all=False):
      
      global _time_caches
  
      if delete_all:
          _time_caches = []
          _parser = { "default": CodeParser() }
      else:
          # normally just kill the expired entries, not all
          for tc in _time_caches:
              # check time_cache for expired entries
              for key, (t, value) in list(tc.items()):
                  if t < time.time():
                      # delete expired entries
                      del tc[key]
docs: Fortpy caches many things, that should be completed after each completion
      finishes.
  
      :param delete_all: Deletes also the cache that is normally not deleted,
          like parser cache, which is important for faster parsing.