2022-10-17 07:29:26 +08:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
2022-11-28 02:20:29 +08:00
|
|
|
// SPDX-License-Identifier: MIT
|
2022-10-17 07:29:26 +08:00
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
// enumerate all system setting keys
|
|
|
|
const (
|
|
|
|
KeyPictureDisableGravatar = "picture.disable_gravatar"
|
|
|
|
KeyPictureEnableFederatedAvatar = "picture.enable_federated_avatar"
|
|
|
|
)
|
2022-11-10 14:43:53 +08:00
|
|
|
|
|
|
|
// genSettingCacheKey returns the cache key for some configuration
|
|
|
|
func genSettingCacheKey(key string) string {
|
|
|
|
return "system.setting." + key
|
|
|
|
}
|