Check if the cache is valid in _fetch_sources.