Skip to content

Commit d3e1863

Browse files
committed
fix page view count
1 parent 4effeec commit d3e1863

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

theme/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func (d *_IncViewDebouncer) run(ctx context.Context) {
5959
if len(d.m) > 0 {
6060
log.Println(`保存文章访问次数`)
6161
d.save(d.m)
62+
clear(d.m)
6263
}
6364
}
6465
}

0 commit comments

Comments
 (0)