perf: 减少离线预订缓存轮询间隔以提高响应速度
将离线预订缓存轮询间隔从5分钟减少到2分钟,以在离线状态下更快获取最新预订信息
Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2025-06-28 10:33:00 | 2 | * @Date: 2025-06-28 10:33:00 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2026-01-17 00:21:26 | 4 | + * @LastEditTime: 2026-01-17 00:22:34 |
| 5 | * @FilePath: /xyxBooking-weapp/src/app.js | 5 | * @FilePath: /xyxBooking-weapp/src/app.js |
| 6 | * @Description: 应用入口文件 | 6 | * @Description: 应用入口文件 |
| 7 | */ | 7 | */ |
| ... | @@ -170,7 +170,7 @@ const App = createApp({ | ... | @@ -170,7 +170,7 @@ const App = createApp({ |
| 170 | */ | 170 | */ |
| 171 | const bootstrap_after_auth = () => { | 171 | const bootstrap_after_auth = () => { |
| 172 | try_preload_when_online() | 172 | try_preload_when_online() |
| 173 | - enable_offline_booking_cache_polling({ interval_ms: 5 * 1000 * 60 }) | 173 | + enable_offline_booking_cache_polling({ interval_ms: 2 * 1000 * 60 }) |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | // 处理在启动时出现的不良网络情况 | 176 | // 处理在启动时出现的不良网络情况 | ... | ... |
-
Please register or login to post a comment