Say in the README what the service keeps in its cache and for how long
Claude-Session: https://claude.ai/code/session_01NcbgfJAa38xFpzy69BWrqh
This commit is contained in:
@@ -129,6 +129,14 @@ The service writes one line per request: the visitor's address (from the proxy's
|
|||||||
its status, size and duration, the referrer and the user agent. Race schedules come from Jolpica, paced under its
|
its status, size and duration, the referrer and the user agent. Race schedules come from Jolpica, paced under its
|
||||||
rate limit and kept in `cache/jolpica/`; a throttled or failed fetch is said in the log and never kept.
|
rate limit and kept in `cache/jolpica/`; a throttled or failed fetch is said in the log and never kept.
|
||||||
|
|
||||||
|
## Caching
|
||||||
|
|
||||||
|
Everything the service fetches or renders is kept in `cache/` (the module's cache volume): race schedules from
|
||||||
|
Jolpica in `cache/jolpica/` (a season that is over for good, the running one for six hours), map tiles in
|
||||||
|
`cache/tiles/` (30 days), and every poster and thumbnail in `cache/posters/` once it rendered whole. A poster is
|
||||||
|
sent with an `ETag` and a day's `Cache-Control`; one whose map or photo failed is not kept, and is sent with five
|
||||||
|
minutes', so it is rendered again once its source answers.
|
||||||
|
|
||||||
## Checks
|
## Checks
|
||||||
|
|
||||||
`merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in
|
`merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in
|
||||||
|
|||||||
Reference in New Issue
Block a user