Commit Graph
11 Commits
Author SHA1 Message Date
Lucanlee d5c1edefae perf: V0.9.4 商品列表分页 + sitemap 文件缓存 + banner/asset/gzip/类型修复
- P1: Product::listing() 分页(WHERE status=1+LIMIT/OFFSET+总数),ProductController 改用并加翻页器,消除列表全表
- P1: outputSitemap() 加 storage/cache/sitemap.xml 文件缓存(TTL 3600s),消除每次爬虫全表
- P2: 首页 banner 改 whereLimit('status',1,20)
- P2: asset() 追加 ?v=filemtime 版本串,theme.css 改后自动击穿 1y 浏览器缓存
- P2: nginx 启用 gzip(文本资源压缩)
- P2: Model::count() $val 隐式可空改 mixed(PHP 8.4+ 弃用)
2026-08-08 23:53:52 +08:00
Lucanlee 2285998618 发现mode有错误 2026-08-08 21:34:47 +08:00
Lucanlee 5a64a0529f 重新再来 2026-08-08 21:26:50 +08:00
Lucanlee ef02d3e9e4 要两次都得触发 2026-08-08 21:06:29 +08:00
Lucanlee 4d36a284ff perf: V0.9.1-0.9.3 性能优化(count/featured 全表→聚合、请求内缓存、二级索引、PSI 未读铃铛)
- V0.9.1 (P0): Model::count() 改 SELECT COUNT(*);新增请求内 identity-map 缓存;
  Product::featured() 改 WHERE+ LIMIT 避免全表
- V0.9.2 (P1): schema.sql 内联二级索引 + install/upgrades/009_perf_indexes.sql 幂等迁移
- V0.9.3 (P1): psi_unread_events() 改 COUNT + JSON_CONTAINS,消除每页 all()+循环
2026-08-08 19:47:35 +08:00
Lucanlee a2dac3b095 这次好像对的 2026-08-08 17:29:28 +08:00
Lucanlee dc0d2622f3 莫名 2026-08-08 17:19:44 +08:00
Lucanlee 9276ed7358 修正看看 2026-08-08 16:37:32 +08:00
Lucanlee ba660d0c57 上次错误 2026-08-08 16:26:31 +08:00
Lucanlee 8101177cb5 文件还在测试中 2026-08-08 15:53:53 +08:00
Lucanlee 5f1e7adb64 Initial commit 2026-08-08 07:47:26 +00:00