Stub polls Dash Platform far too often (15s default) #17

Open
opened 2026-10-12 10:44:59 +00:00 by rhelwig · 1 comment
Owner

Problem

The Stub polled Dash Platform every 15 s by default (DECENT_STUB_REFRESH_MS), with a hard cap of 5 min, so day-scale intervals were impossible. Sites rarely change; this needlessly taxes Platform.

Fix (branch fix/stub-refresh-interval)

  • Default refresh 24 h (86400000 ms)
  • Minimum 1 minute (60000 ms) for sites that change often; faster is pointless. 0 (check every request) kept for dev/tests only
  • Maximum raised to 7 days (604800000 ms); refresh timeout stays 0..300000
  • Docs (docs/DEPLOY.md) + tests updated

Follow-up

  • After Auth/Admin publish completes and content + metadata are safely stored, trigger an immediate refresh on the preferred Stub URL from site metadata only. Other mirrors/backups stay on their regular slow schedule.
## Problem The Stub polled Dash Platform every **15 s** by default (`DECENT_STUB_REFRESH_MS`), with a hard cap of 5 min, so day-scale intervals were impossible. Sites rarely change; this needlessly taxes Platform. ## Fix (branch `fix/stub-refresh-interval`) - [x] Default refresh **24 h** (86400000 ms) - [x] Minimum **1 minute** (60000 ms) for sites that change often; faster is pointless. `0` (check every request) kept for dev/tests only - [x] Maximum raised to **7 days** (604800000 ms); refresh timeout stays 0..300000 - [x] Docs (`docs/DEPLOY.md`) + tests updated ## Follow-up - [ ] After Auth/Admin publish completes and content + metadata are safely stored, trigger an immediate refresh on the **preferred Stub URL from site metadata only**. Other mirrors/backups stay on their regular slow schedule.
Author
Owner

Shipped via #18 (merge de83fc6). Live ronhelwig.com Stub on VPS redeployed 2026-10-12 06:46 ET: stub dist rebuilt from main, DECENT_STUB_REFRESH_MS changed from 60000 to 86400000 (24h), service restarted. Leaving this open for the follow-up: post-publish refresh trigger aimed at the preferred Stub URL from site metadata.

Shipped via #18 (merge de83fc6). Live ronhelwig.com Stub on VPS redeployed 2026-10-12 06:46 ET: stub dist rebuilt from main, `DECENT_STUB_REFRESH_MS` changed from 60000 to 86400000 (24h), service restarted. Leaving this open for the follow-up: post-publish refresh trigger aimed at the preferred Stub URL from site metadata.
Sign in to join this conversation.
No labels
feature request
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
rhelwig/DecentSite#17
No description provided.