]> source.dussan.org Git - gitea.git/commit
Add commit count caching (#2774)
authorLauris BH <lauris@nix.lv>
Thu, 26 Oct 2017 01:37:33 +0000 (04:37 +0300)
committerLunny Xiao <xiaolunwen@gmail.com>
Thu, 26 Oct 2017 01:37:33 +0000 (09:37 +0800)
commiteca05b09aa269dda1309ee77ac750e29e71c3fd3
tree8f5a4aa5c7da0de3e6c2a16f8a567b0b1b0c758b
parent3ab580c8d6b8a2c063d848f8e3002347c9e5cebb
Add commit count caching (#2774)

* Add commit count caching

* Small refactoring

* Add different key prefix for refs and commits

* Add configuratuion option to allow to change caching time or disable it
conf/app.ini
models/repo.go
models/update.go
modules/cache/cache.go [new file with mode: 0644]
modules/context/repo.go
modules/setting/setting.go
routers/admin/admin.go
routers/init.go
routers/repo/commit.go
routers/routes/routes.go