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

consistent locations for cache and configuration files #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keturn
Copy link
Contributor

@keturn keturn commented Jan 15, 2021

This establishes consistent locations for the configuration and cache files instead of looking for them in whatever the current working directory happens to be.

It makes use of AppDirs to pick appropriate places.

To avoid directly interacting with the request cache by filename, this patch removes explicit use of sqlite to vacuum the cache file; requests-cache does that itself as of 0.5.1.

Removed explicit use of sqlite to vacuum the cache file; requests-cache
does that itself as of 0.5.1.
@kemayo
Copy link
Owner

kemayo commented Jan 23, 2021

I'm generally for this, but I think if the cache is getting moved somewhere less-visible it'd probably be good to add an explicit call to remove_expired_responses to the regular execution path.

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.

None yet

2 participants