Releases: oiov/vmail
Releases · oiov/vmail
v2.2.0 - Performance Optimizations
🚀 Performance Optimizations
D1 Database Read Reduction
- API Key Caching: Cache API keys for 5 minutes to reduce D1 queries
- Remove lastUsed Updates: Eliminate unnecessary writes on every API call
- Stats API Cache: Extend cache from 30s to 5min
- Smart Polling: Frontend checks lightweight meta endpoint every 60s, only fetches full email list when changes detected
- Database Index: Add composite index on
(message_to, created_at)for faster queries
Bug Fixes
- Growth Rate Calculation: Fix SiteStats to show total growth rate instead of daily increment comparison
- Deployment Variables: Fix deploy.yml to properly handle empty PASSWORD and API_RATE_LIMIT_PER_MINUTE variables
Impact
These optimizations significantly reduce D1 database reads and writes, which should lower your Cloudflare bill.
🚀 性能优化
减少 D1 数据库读取
- API Key 缓存:缓存 5 分钟以减少 D1 查询
- 移除 lastUsed 更新:消除每次 API 调用的不必要写入
- Stats API 缓存:从 30 秒延长到 5 分钟
- 智能轮询:前端每 60 秒检查轻量级 meta 接口,仅在检测到变化时才获取完整邮件列表
- 数据库索引:在
(message_to, created_at)上添加复合索引以加快查询
Bug 修复
- 增长率计算:修复 SiteStats 显示总量增长率而非每日增量对比
- 部署变量:修复 deploy.yml 正确处理空的 PASSWORD 和 API_RATE_LIMIT_PER_MINUTE 变量
影响
这些优化显著减少了 D1 数据库的读写次数,应该能降低你的 Cloudflare 账单。
Release v2.1.0
What's Changed
- Support restful api for developers and api key generator
- Update deploy guide
Full Changelog: v2.0.0...v2.1.0
Release v2.0.0
What's Changed
- feat: 项目初始化为单 worker 应用架构
- chore: 数据库由 Turso 迁移至 Cloudflare D1 by @gujiangjiang in #23
- fix: 修复密码登录在邮箱清空后失效的问题 by @gujiangjiang in #24
New Contributors
- @gujiangjiang made their first contribution in #23
Full Changelog: 1.0.0...v2.0.0
v1.0.0
Vmail.DEV v1.0.0
更新内容
- 支持多域名配置
- 支持发送邮件
- 支持保存密码找回邮箱
Bug 修复
略
Full Changelog: https://github.com/oiov/vmail/commits/1.0.0