def build_cache(): import logging logging.basicConfig(level=logging.INFO) cache.invalidate(hard=True) BeijingBus.get_all_stations() click.secho('Done!', fg='green')