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

Cache timout #30

Closed
barrust opened this issue Jul 8, 2017 · 1 comment
Closed

Cache timout #30

barrust opened this issue Jul 8, 2017 · 1 comment

Comments

@barrust
Copy link
Owner

barrust commented Jul 8, 2017

Currently the caching mechanism does not have a timeout to 'refresh' the data. It would be helpful if one could provide a timeout parameter so that long running applications can refresh the data.

from mediawiki import (MediaWiki)
wikipedia = MediaWiki()
# queries are not cleared out after X seconds
wikipedia.set_refresh = 30
# queries are refreshed after being stale for 30 seconds

It may be more beneficial to have the refresh be more than a few minutes as data is not updated so frequently.

@barrust
Copy link
Owner Author

barrust commented Jul 10, 2017

fixed in 0.3.14!

@barrust barrust closed this as completed Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant