[PR #453] [MERGED] Add option to configure caching max-age via env #572

Closed
opened 2026-03-02 15:58:34 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: feat/caching-max-age


📝 Commits (1)

  • 0171e2e Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/probberechts/soccerdata/pull/453 **Author:** [@probberechts](https://github.com/probberechts) **Created:** 12/31/2023 **Status:** ✅ Merged **Merged:** 12/31/2023 **Merged by:** [@probberechts](https://github.com/probberechts) **Base:** `master` ← **Head:** `feat/caching-max-age` --- ### 📝 Commits (1) - [`0171e2e`](https://github.com/probberechts/soccerdata/commit/0171e2e699587feaa6d0d120f754359b22595269) Add option to configure caching max-age via env ### 📊 Changes **3 files changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/intro.rst` (+3 -0) 📝 `soccerdata/_common.py` (+3 -3) 📝 `soccerdata/_config.py` (+3 -0) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 15:58:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#572
No description provided.