feat: caching settings #32

Open
fauno wants to merge 1 commits from caching into main
3 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,9 @@ GITEA_ENABLE_PUSH_CREATE_USER=false
GITEA_ENABLE_PUSH_CREATE_ORG=false
GITEA_LFS_START_SERVER=false
GITEA_MAX_CREATION_LIMIT=-1
GITEA_CACHE_ADAPTER=memory
Review

Is memory the default value? I wonder if there is a use case where someone wants to disable the cache

Is memory the default value? I wonder if there is a use case where someone wants to disable the cache
Review

yeah it's the default, as i understand it's a key+val+ttl, the next in-memory option is twoqueue which adds lru. then you jump to redis or memcached

yeah it's the default, as i understand it's a key+val+ttl, the next in-memory option is twoqueue which adds lru. then you jump to redis or memcached
GITEA_CACHE_HOST=
GITEA_CACHE_ITEM_TTL=16h
GITEA_REPO_UPLOAD_ENABLED=true
GITEA_REPO_UPLOAD_ALLOWED_TYPES=*/*

View File

@ -1,4 +1,4 @@
export APP_INI_VERSION=v25
export APP_INI_VERSION=v26
export DOCKER_SETUP_SH_VERSION=v1
export PG_BACKUP_VERSION=v1

View File

@ -126,3 +126,8 @@ MODE=console
LEVEL=WARN
STACKTRACE_LEVEL=None
ENABLE_XORM_LOG=false
[cache]
ADAPTER = {{ env "GITEA_CACHE_ADAPTER" }}
HOST = {{ env "GITEA_CACHE_HOST" }}
ITEM_TTL = {{ env "GITEA_CACHE_ITEM_TTL" }}