服务器长跑不再堆积取消监听,数据库少走几趟。

报告工人的等待到点就摘掉取消监听。本地数据库缓存表结构,并把设置身份合成一条语句,对照通过后默认打开,写成 off 仍走原来的语句。交付、重算和限流的内存表会过期。登录读缓存默认关闭,要开再设 IDENTITY_SESSION_COOKIE_CACHE=on。

自测:tsc 通过,lint 0 error,点名测试 134 通过,test:db 开关关和开都只有已知的 13 条失败,往返 49 降到 32。

Co-Authored-By: Grok (agent loop)
This commit is contained in:
jesse-ux
2026-10-14 03:32:39 +08:00
co-authored by Grok (agent loop)
parent 66cd60081f
commit 4c3485bc23
28 changed files with 1614 additions and 34 deletions
+8
View File
@@ -31,3 +31,11 @@ JYOTISH_DYNAMIC_RECTIFICATION_TOKEN=<independent-openssl-rand-base64-32-output>
# these server-side values through env_file; they are not NEXT_PUBLIC values.
PERSONAL_REPORT_ENABLED=true
PERSONAL_REPORT_DAILY_LIMIT=5
# Local Postgres adapter. Unset or on enables both. Exact off restores the
# previous per-statement sequence. Measured default is on (2026-10-14).
JYOTISHA_PG_METADATA_CACHE=on
JYOTISHA_PG_MERGED_SESSION_SETUP=on
# Ordinary session reads stay uncached unless this is exactly on. Password
# change, account deletion, and admin routes bypass the cache. maxAge is 300s.
#IDENTITY_SESSION_COOKIE_CACHE=off