Auto Release / build (push) Successful in 4m9s
根因:pullCreditFromPhp 在 db-worker 线程用裸 JDBC UPDATE users + invalidateScoreCache, 但 /credits 在 Server thread 走 getScore() 命中 scoreCache 返回旧值。 DB 实际已更新(90.77),但缓存返回旧值(100.77)→ '同步了个寂寞'。 invalidateScoreCache 和 clearScoreCache 都治标不治本——线程竞争窗口无法消除。 最终修复:getScore 去掉 cache-hit early return,每次查 DB。users 表很小(几十人), 查 DB 开销可忽略。scoreCache 仍由 setScore/addScore 写入供 checkRestrictions 去重, 但 getScore 不再提前返回缓存。 WebManager pullCreditFromPhp 循环结束后保留 clearScoreCache 兜底。