3x-ui/internal/web
Hamed 64a7697f56
perf(traffic): skip unchanged global writes between heartbeats (#6931)
* perf(traffic): skip unchanged global writes between heartbeats

Persist directional usage changes immediately, including lower resets, while
refreshing identical global totals only at an inclusive one-hour heartbeat.
Use the GORM clock consistently for the existing 24-hour freshness window and
preserve local-only snapshots, quota enforcement, and downstream forwarding.

Fixes #6928

* docs(traffic): describe persisted global heartbeat timestamps

Replace the stale every-push model comment with the change-or-hourly-heartbeat
rule. Keep the local-counter separation, delta accounting, MAX fold and reset
semantics explicit without treating UpdatedAt as a last-push timestamp.

Address the nonblocking review feedback on PR #6931 without rewriting
published history.

Refs #6928
2026-10-25 08:44:05 +01:00
..
controller feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
entity feat(hosts): give a host a pool of SNIs, random per config or shared (#6923) 2026-10-24 21:05:42 +02:00
global refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
job fix(iplimit): keep recording client IPs with fail2ban disabled (#6830) 2026-10-24 06:09:01 +02:00
locale feat(discord): add Discord notification bot service (#6486) 2026-09-13 14:04:53 +02:00
middleware fix(middleware): log rejected CSRF requests with the trusted client address (#6692) 2026-10-24 04:51:21 +02:00
network feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
runtime perf(runtime): pool the local xray gRPC connection (#6916) 2026-10-24 19:30:09 +02:00
service perf(traffic): skip unchanged global writes between heartbeats (#6931) 2026-10-25 08:44:05 +01:00
session refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
translation feat(hosts): give a host a pool of SNIs, random per config or shared (#6923) 2026-10-24 21:05:42 +02:00
websocket fix(tuic): client speed display and certificate button layout (#6723) 2026-10-05 19:46:46 +02:00
cadence_test.go Add remote routing URL support (#6168) 2026-08-18 16:02:11 +02:00
node_contract_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
routes_contract_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
schedule_test.go fix(settings): accept five-field crontab for report and LDAP schedules 2026-10-11 20:37:04 +02:00
web.go feat(tgbot): rebuild the Telegram bot around editable screens and inline lists (#6760) 2026-10-24 12:39:56 +02:00
web_mtls.go feat(node): node hardening — mTLS, hashed+zstd reconcile transport, per-node net metrics (#5382) 2026-06-16 12:19:33 +02:00
web_mtls_test.go feat(node): node hardening — mTLS, hashed+zstd reconcile transport, per-node net metrics (#5382) 2026-06-16 12:19:33 +02:00
web_shutdown_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
web_sublink_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00
web_tuic_shutdown_test.go fix(web): install the share-link provider before the panel serves (#6914) 2026-10-24 05:50:46 +02:00