Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Domain cache #2019

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from
Open

Domain cache #2019

wants to merge 3 commits into from

Conversation

kevcooper
Copy link
Contributor

When searching for a domain in an org with many sites, domain:lookup can sometimes take 15-20 minutes to return a result. This PR caches all your domain data to disk to make subsequent lookups significantly faster. If a cache 'miss' occurs the command rebuilds the cache with the latest domain info from pantheon. I also added the --rebuild flag to force a rebuild before doing the lookup.

Cache file is stored as ~/.terminus/cache/domains

@kevcooper
Copy link
Contributor Author

I see that the unit test needs a little modification to make config work as expected... I'll work on that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant