Alternative auto-updater that adjusts the update interval based on recent activity.
An alternative auto-updater for Holotower threads that dynamically adjusts the update interval based on recent activity.
The default auto updater's logic has an initial delay is 5 seconds, doubling every time there are no new posts, up to 10 minutes. In practice this translates to a ~5m update interval after 5:15 cumulative minutes of no posts, and 10m after 10:35.
This script instead uses a dynamic update interval based on when the 5 most recent posts were made. Recent posts have more influence, so active threads refresh faster, while older threads slow down updates automatically.
| Example | minutes since posts | next update (seconds) |
|---|---|---|
| Very active | [0, 1, 2, 3, 4] |
5 |
| Active | [3, 5, 7, 8, 9] |
30 |
| The above, after 2 minutes | [5, 7, 9, 10, 11] |
54 |
| Less active | [5, 10, 15, 20, 25] |
62 |
| Recently active | [10, 12, 14, 15, 26] |
102 |
| Medium activity | [14, 26, 32, 42, 60] |
179 |
| Slow thread with recent activity | [3, 180, 200, 240, 300] |
188 |
| Slow thread | [120, 180, 200, 240, 300] |
421 |
| Stale thread | [440, 450, 600, 620, 640] |
600 |
It also tries to detect when a thread is archived or deleted and disabled itself.