-
Notifications
You must be signed in to change notification settings - Fork 41
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 is not working correctly #86
Comments
The top-level
More details are available under the caching section section. Regarding python 3.6, it appears that 3.6 is included in the Travis build matrix, so it should work for you today in 3.6. |
Yes, like @dlecocq said |
Thank you both for the prompt reply. i) setup.py doesn't mention about python3.6 and I was also getting error in installation that's why I got confused. I fixed that. It works fine. You can add same in setup.py ii) @b4hand If @dlecocq Also I needed a time based caching so I was using Thanks both for prompt replies. |
The policy is intended to be used with the cache classes. It doesn't change the fact that fetch always fetches the Line 78 in 813baf5
|
In fact, the methods |
Given the above analysis it seems pretty clear to me that a refactoring would be desirable, but this would also be an interface breaking change. I may take a look and see how impacting that change would be, but it's probably not a high priority right now. |
Cache seems to work incorrectly(or not at all 😁). To simulate the process I used following piece of code
The speed is clearly visible in both cases. Cache used in library is making URL request in each time of iteration. I disconnected my internet when it was running through HeaderWithDefaultPolicy, and it froze. When I killed the process it exited with urllib error. So it was making calls and cache was not working.
Correct me if I am wrong
And when will this be available in python3.6?
The text was updated successfully, but these errors were encountered: