> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fastpix.com/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fastpix.com/docs/_mcp/server.

# Automatic cleanup keeps realtime view counts accurate

> A new scheduled cleanup removes expired view sessions on a one-hour rolling window for accurate live counts.

The realtime view counter now runs a scheduled cleanup job that prunes sessions older than the active viewing window. This keeps the "current concurrent viewers" number accurate and prevents idle or abandoned sessions from inflating live counts.

Details:

* **Hourly rolling window** — the cleanup respects a one-hour active-session threshold, matching the heartbeat semantics of the player SDKs.
* **Scheduled job** — the cleanup runs on a schedule rather than relying on read-time filtering, so query latency is unaffected.

You should see steadier and more accurate live viewer counts in dashboards, particularly after large viewing spikes when many sessions end without an explicit close event.