浏览计数改进 #44

Closed
l14n9w3n opened this Issue Jul 7, 2012 · 1 comment

Projects

None yet

2 participants

@l14n9w3n
l14n9w3n commented Jul 7, 2012

清除一下缓存,浏览次数增加了几倍.....博客基本是没有人访问的状态的。

@88250 88250 was assigned Jul 9, 2012
@88250
Member
88250 commented Jul 9, 2012

嗯,这个浏览次数还需要再改进。

加入 IP 判断:当天同一 IP 访问时,总浏览量只会 +1,同一文章也只 +1。

系分:

  1. 浏览过的页面地址(permalink)放入 Cookie,1 天过期
    例如:visited: ["/", "/permalink1", ....]
  2. 访问请求时根据 Cookie (name: visited) 判断是否需要浏览计数
@88250 88250 added a commit that closed this issue Jul 16, 2012
@88250 88250 Fixed #44 8f7ba46
@88250 88250 closed this in 8f7ba46 Jul 16, 2012
@GoogleCodeExporter GoogleCodeExporter pushed a commit to Letractively/latke that referenced this issue Nov 11, 2015
@88250 88250 b3log/solo#44 b198600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment