Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Site
Clone

Read only, no credentials:

https://rodent.software/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software/vole.git

Self-hosted forge that lives in your Git repo.

Remove page-view tracking

0a12642f6c01236d1fbd4ee06aaa2bd2283c6bf0 · Keenan Nemetz · 3d ago · parent 8f6548a6

Remove page-view tracking

Counting a page wrote a row to instance.db on every successful HTML GET, so
reading the instance contended with CI and the merge worker for the one
write lock. The counters answered one status page and were not part of what
a restore has to keep, so the feature is gone rather than moved.

The status overview loses its page-view card and table; the rest of the
Admin page is unchanged. An instance that recorded views keeps the old
page_views table in instance.db, which nothing reads.

Refs #398

server/forgepaths.go +2−2

@@ -16,8 +16,8 @@ import (
16 16 )
17 17
18 18 // forgeHandler is the mux with the non-page paths in front of it. It sits inside
19 // the web middleware, so the session, the security headers, the compressor and
20 // the page-view recorder behave exactly as they do for a page.
19 // the web middleware, so the session, the security headers, and the compressor
20 // behave exactly as they do for a page.
21 21 func (s *Server) forgeHandler(next http.Handler) http.Handler {
22 22 return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
23 23 if s.gitTransport(rw, r) {