kartikanand / wikilooper

Wikilooper web version
MIT License
13 stars 1 forks source link

Add Wikipedia request caching, various cleanup #2

Closed mcpower closed 9 years ago

mcpower commented 9 years ago

Deleted some redundant code and also made it forward-compatible with Python 3.

The caching should speed up requests by a lot when requesting a cached page. The fallback lru_cache (used on Python 2) isn't very efficient, so I highly recommend using Python 3 if possible.