-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Add a config option to disable caching? #1511
Comments
Thanks for opening the issue Adrian. |
Right, |
|
@keflavich - isn't it also possible to have |
(If so, I suppose it should be documented clearly, though!) |
Huh, yes, that's correct: |
Thanks. I'll try out the cache_location=None option. But that seems like a non-intuitive way of turning off caching to me. |
Can you suggest what would be most intuitive? I agree that it's not obvious, since it's not documented at all, but that would probably have been my first suggested approach once we do document it. |
I find the cache=True/False option intuitive and it would be consistent
with the other query routines.
Also, I wonder if the default option should be False. The caching filled
up my home directory and it took me quite a while to figure out what was
going on.
…On Thu, Jul 25, 2019 at 5:38 PM Adam Ginsburg ***@***.***> wrote:
Can you suggest what would be most intuitive? I agree that it's not
obvious, since it's not documented at all, but that would probably have
been my first suggested approach once we do document it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1511?email_source=notifications&email_token=ACHU3N2EPWTA2RWVVKCK2MDQBI2OVA5CNFSM4IGTNCK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD23CIJQ#issuecomment-515253286>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACHU3N2OGSL3XIXLKYKFITLQBI2OVANCNFSM4IGTNCKQ>
.
--
Dr. David Lee Nidever
Assistant Professor
Department of Physics
Montana State University
Barnard Hall (EPS building), Room 202
Bozeman, MT 59717
|
OK, that sounds good - I'm torn about defaulting caching to (1) Warn the first time caching is done in a session so users know that caching happens Any other ideas? Neither of these is difficult to implement, and I think they're both reasonable. |
#1634 meant to address this, reopen if it's not the case. |
Via email, @dnidever asked me if there was a way to disable caching with astroquery. It looks like each
.query*()
method has acache=False
option, but is there a way to do this globally? It would be nice to add a config option to handle this, if it doesn't already exist.The text was updated successfully, but these errors were encountered: