]> source.dussan.org Git - gitea.git/commit
Enable caching on assets and avatars (#3376)
authorMorgan Bazalgette <git@howl.moe>
Sat, 3 Feb 2018 22:37:05 +0000 (23:37 +0100)
committerLauris BH <lauris@nix.lv>
Sat, 3 Feb 2018 22:37:05 +0000 (00:37 +0200)
commit17655cdf1b409521262d5d54eb19884d307c47ce
treeb06d15367afc6bd4f915c0e8b9272241bb3f4a3c
parent77f8bad2fb7a6a4ab57b398cb89e6889f76ffe8a
 Enable caching on assets and avatars (#3376)

* Enable caching on assets and avatars

Fixes #3323

* Only set avatar in user BeforeUpdate when there is no avatar set

* add error checking after stat

* gofmt

* Change cache time for avatars to an hour
models/user.go
modules/public/dynamic.go
modules/public/public.go
modules/public/static.go
routers/routes/routes.go