manusimidt / py-xbrl

Python-based parser for parsing XBRL and iXBRL files
https://py-xbrl.readthedocs.io/en/latest/
GNU General Public License v3.0
100 stars 37 forks source link

Make delay in HTTP Cache more intelligent #18

Closed manusimidt closed 2 years ago

manusimidt commented 3 years ago

Currently the HTTPCache waits the specified time, regardless of whether another request follows. https://github.com/manusimidt/xbrl_parser/blob/5a1b3882e8b65f7815bbc330c9c010169c195951/xbrl_parser/cache.py#L77

It should have at least an internal clock that counts the number of millisecs between two requests.

mrx23dot commented 2 years ago

Done in https://github.com/manusimidt/py-xbrl/pull/65