gitea/models
Lunny Xiao 91fa0eb9d7
Avoid warning for system setting when start up (#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: Lauris BH <lauris@nix.lv>
2023-02-24 18:23:13 +08:00
..
actions Require approval to run actions for fork pull request (#22803) 2023-02-24 15:58:49 +08:00
activities
admin
asymkey Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
auth Use minio/sha256-simd for accelerated SHA256 (#23052) 2023-02-22 14:21:46 -05:00
avatars Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
db Remove all package data after tests (#22984) 2023-02-23 22:11:56 +08:00
dbfs Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
fixtures Make CI use a dummy password hasher for all tests (#22983) 2023-02-20 13:20:30 +08:00
git
issues Fix intermittent panic in notify issue change content (#23019) 2023-02-20 19:15:49 -05:00
migrations Require approval to run actions for fork pull request (#22803) 2023-02-24 15:58:49 +08:00
organization Rename GetUnits to LoadUnits (#22970) 2023-02-19 16:31:39 +08:00
packages
perm
project improve FindProjects (#23085) 2023-02-24 13:18:52 +08:00
pull
repo
secret
system Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
unit
unittest Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
user Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
migrate_test.go
migrate.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00