summaryrefslogtreecommitdiffstats
path: root/models/system/setting_key.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/system/setting_key.go')
-rw-r--r--models/system/setting_key.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/system/setting_key.go b/models/system/setting_key.go
index 5a6ea6ed72..14105b89d0 100644
--- a/models/system/setting_key.go
+++ b/models/system/setting_key.go
@@ -9,3 +9,8 @@ const (
KeyPictureDisableGravatar = "picture.disable_gravatar"
KeyPictureEnableFederatedAvatar = "picture.enable_federated_avatar"
)
+
+// genSettingCacheKey returns the cache key for some configuration
+func genSettingCacheKey(key string) string {
+ return "system.setting." + key
+}