diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-09-11 18:14:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 10:14:01 +0000 |
commit | ebff0513dbe8abd2c9807789c006f41d002416b5 (patch) | |
tree | fd7364ec34133204243ca5314825ab1f4353e7ef /models/fixtures | |
parent | 598465eb43e2c85f9e50934cc9b6b742a99e7d46 (diff) | |
download | gitea-ebff0513dbe8abd2c9807789c006f41d002416b5.tar.gz gitea-ebff0513dbe8abd2c9807789c006f41d002416b5.zip |
Fix context cache bug & enable context cache for dashabord commits' authors (#26991)
Unfortunately, when a system setting hasn't been stored in the database,
it cannot be cached.
Meanwhile, this PR also uses context cache for push email avatar display
which should avoid to read user table via email address again and again.
According to my local test, this should reduce dashboard elapsed time
from 150ms -> 80ms .
Diffstat (limited to 'models/fixtures')
-rw-r--r-- | models/fixtures/system_setting.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/fixtures/system_setting.yml b/models/fixtures/system_setting.yml index 6c960168fc..30542bc82a 100644 --- a/models/fixtures/system_setting.yml +++ b/models/fixtures/system_setting.yml @@ -1,6 +1,6 @@ - id: 1 - setting_key: 'disable_gravatar' + setting_key: 'picture.disable_gravatar' setting_value: 'false' version: 1 created: 1653533198 @@ -8,7 +8,7 @@ - id: 2 - setting_key: 'enable_federated_avatar' + setting_key: 'picture.enable_federated_avatar' setting_value: 'false' version: 1 created: 1653533198 |