-
Notifications
You must be signed in to change notification settings - Fork 123
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
Cache filenames too long #39
Comments
Thanks for the catch! I guess this is the same as in #6. I think the best is to not cache the search (i.e. not create a file at all). Otherwise there is no way recovering the search from a truncated filename. In the meantime I close this one as duplicate and come up with a solution in the next few days. |
I think that a hash approach should be considered. In my case, the complex search also involves a long result and the cache mechanism is very handy. The probability of collision in long searches should be very low. Anyway, I think a parameter to control the creation or not of cache result is always useful. Thanks! |
A hash approach is actually a very good idea! Would you be able to contribute? This would be most wonderful! Regarding the create file-parameter I think it might clash with the logic of the refresh parameter. |
Sure, here it is: Thanks! |
When the query is too long, the module fails when saving cache results:
[Errno 63] File name too long
The issue is in
scopus_search.py
:[...]
Could the cache filename be shortened, or at least, truncated?
The text was updated successfully, but these errors were encountered: