pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

Statcast cache incomplete issue

Open ss77995ss opened this issue 2 years ago • 0 comments

Related Issue

  • #375

Description

  • Cache with statcast function will have incorrect value and cause cache.purge() not work.
  • Also will cause the cache has no expire time and occupied in memory.

What cause this issue

  • If df_cache is wrapped by another df_cache the 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_cache for _small_request

ss77995ss avatar Aug 20 '23 16:08 ss77995ss