You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setting_key.go 432B

123456789101112131415
  1. // Copyright 2022 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package system
  4. // enumerate all system setting keys
  5. const (
  6. KeyPictureDisableGravatar = "picture.disable_gravatar"
  7. KeyPictureEnableFederatedAvatar = "picture.enable_federated_avatar"
  8. )
  9. // genSettingCacheKey returns the cache key for some configuration
  10. func genSettingCacheKey(key string) string {
  11. return "system.setting." + key
  12. }