mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[PR #453] [MERGED] Add option to configure caching max-age via env #572
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#572
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/probberechts/soccerdata/pull/453
Author: @probberechts
Created: 12/31/2023
Status: ✅ Merged
Merged: 12/31/2023
Merged by: @probberechts
Base:
master← Head:feat/caching-max-age📝 Commits (1)
0171e2eAdd option to configure caching max-age via env📊 Changes
3 files changed (+9 additions, -3 deletions)
View changed files
📝
docs/intro.rst(+3 -0)📝
soccerdata/_common.py(+3 -3)📝
soccerdata/_config.py(+3 -0)📄 Description
This commit adds a "SOCCERDATA_MAXAGE" environment variable. If set, cached data that is older than the configured max-age will be re-downloaded. This is useful for testing. We want to check regularly whether the scrapers can still parse the remote data, but downloading all data in each test run is too slow.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.