fix: expire schedule and attendee caches after one hour
This commit is contained in:
1 parent
dd5a6ef5ae
commit
cd7924d890
5 files changed
+61
-13
No files matched your search
@@ -74,9 +74,12 @@ you never listed and it says so rather than guessing.
|
||||
## Local SQLite cache
|
||||
|
||||
`~/.cache/wodify/wodify.db` (override with `WODIFY_DB`), created mode `600` because it holds
|
||||
other members' names. Responses are stamped with the local date they were fetched on and
|
||||
reused for the rest of that day; anything older is a miss. Past days never change, so this is
|
||||
safe. Today's schedule can shift — that is what `--refresh` is for.
|
||||
other members' names. Schedules (including your reservation/sign-in status) and attendee
|
||||
rosters expire after **one hour**; the next query automatically fetches fresh data. Workout
|
||||
content stays cached for the local calendar day. All payloads expire at midnight.
|
||||
Use `--refresh` for immediate updates, especially before deciding attendance for a diary:
|
||||
a one-hour cache can still predate a recent sign-in. `bookings` queries already go directly
|
||||
to Wodify without this payload cache.
|
||||
|
||||
Every command states whether the answer came from cache or the network.
|
||||
|
||||
|
||||
Reference in new issue
Block a user