diff --git a/README.md b/README.md index c059150..4e85ef8 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ The container will: - Start Flask on port **8000** - Create `/data/dashboard.db` inside the container (mapped to `./data/` on the host) - If env-var credentials are set, seed a "Default" controller and sync its users -- Schedule a user-cache refresh every 6 hours for every enabled controller +- Schedule a user-cache refresh every hour for every enabled controller Verify it's running: @@ -240,7 +240,7 @@ reverse proxy with auth in front of it. | Names show as `Unknown (xxxxxxxx...)` | Users not synced yet for that controller | Click **Sync** in the Controllers modal | | Webhook URL stored in controller points to the wrong address | Browser's origin isn't reachable from the controller | Set `DASHBOARD_BASE_URL` in `.env`, remove + re-add the controller | | `Port 12445 connection refused` | Firewall blocking port | Add LAN IN firewall rule in UniFi Network (Step 1) | -| Dashboard shows stale names after a user rename | Cache not refreshed | Click **Sync Users** or wait for the 6-hour auto-sync | +| Dashboard shows stale names after a user rename | Cache not refreshed | Click **Sync Users** or wait for the hourly auto-sync | --- diff --git a/app.py b/app.py index ff75a00..22b5158 100644 --- a/app.py +++ b/app.py @@ -607,7 +607,7 @@ with app.app_context(): sync_all_controllers() scheduler = BackgroundScheduler() -scheduler.add_job(sync_all_controllers, "interval", hours=6) +scheduler.add_job(sync_all_controllers, "interval", hours=1) scheduler.start() if __name__ == "__main__":