def run_flush_extract_cache(opts, **kwargs): """ Flush the extraction cache. """ URLCache.flush() ExtractCache.flush() ThumbnailCache.flush() echo('Extraction caches flushed.', no_color=opts.no_color)
def run_flush_extract_cache(opts, **kwargs): """ Flush the extraction cache. """ from newslynx.models import URLCache, ExtractCache, ThumbnailCache URLCache.flush() ExtractCache.flush() ThumbnailCache.flush() log.info('Extraction caches flushed.')
def flush_work_cache(): URLCache.flush() ExtractCache.flush() ThumbnailCache.flush()