jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.25k stars 333 forks source link

Cache Generates Massive Amounts of Empty Files #437

Closed BOBONA closed 2 months ago

BOBONA commented 3 months ago

Using the cache is generating these files.

_small_request1720064495.401325.cache_record.json

The files contain {"func": "_small_request", "args": [

bdilday commented 3 months ago

Thanks for raising this! I have been wondering why cache.purge() fails to work for me and I think this is the cause. I think the root cause is the cache is trying and failing to serialize dates. I think it is fixed by https://github.com/jldbc/pybaseball/pull/438