Serve last-known cached data when the Api is unreachable #34

Open
opened 2026-07-01 01:05:32 +00:00 by manlycucumber · 0 comments
manlycucumber commented 2026-07-01 01:05:32 +00:00 (Migrated from github.com)

Problem

Network failures and Api downtime must not break the calendar. When a live request fails, the plugin should serve the most recent cached payload and signal staleness quietly.

Acceptance criteria

  • On an Api error or timeout, surfaces render from the last-known cached payload if available.
  • A subtle, translatable staleness indicator is shown when serving stale data.
  • No PHP warnings or blank surfaces occur on Api failure.
  • Recovery is automatic once the Api responds again.

Notes

Degrade gracefully is a launch-blocking behaviour.

## Problem Network failures and Api downtime must not break the calendar. When a live request fails, the plugin should serve the most recent cached payload and signal staleness quietly. ## Acceptance criteria - [ ] On an Api error or timeout, surfaces render from the last-known cached payload if available. - [ ] A subtle, translatable staleness indicator is shown when serving stale data. - [ ] No PHP warnings or blank surfaces occur on Api failure. - [ ] Recovery is automatic once the Api responds again. ## Notes Degrade gracefully is a launch-blocking behaviour.
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
Directorium/Ordo#34
No description provided.