pybaseball
pybaseball copied to clipboard
Statcast cache incomplete issue
Related Issue
- #375
Description
- Cache with
statcastfunction will have incorrect value and causecache.purge()not work. - Also will cause the cache has no expire time and occupied in memory.
What cause this issue
- If
df_cacheis wrapped by anotherdf_cachethe parent cache will finish writing once the child cache start writing. - Parent cache file will become invalid JSON file and cannot be parsed correctly.
How to fix
- Remove the
df_cachefor_small_request