gitea/models/unittest
Yarden Shoham 7c3196ceac
Avoid warning for system setting when start up (#23054) (#23116)
Backport #23054

Partially fix #23050

After #22294 merged, it always has a warning log like `cannot get
context cache` when starting up. This should not affect any real life
but it's annoying. This PR will fix the problem. That means when
starting up, getting the system settings will not try from the cache but
will read from the database directly.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv>
2023-02-24 16:46:11 -05:00
..
consistency.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
fixtures.go Make CI use a dummy password hasher for all tests (#22983) 2023-02-20 13:20:30 +08:00
fscopy.go Use ErrInvalidArgument in packages (#22268) 2022-12-31 12:49:37 +01:00
reflection.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
testdb.go Avoid warning for system setting when start up (#23054) (#23116) 2023-02-24 16:46:11 -05:00
unit_tests.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00