diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-12-19 17:29:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 09:29:05 +0000 |
commit | e7cb8da2a8310ac167b6f613b283caa3316a7154 (patch) | |
tree | 2548aa41a4b8c168b4cc81d5cb63d577c9a2ca8b /custom/conf | |
parent | 4eb2a29910779ac6005a5d67f31067a1132c5297 (diff) | |
download | gitea-e7cb8da2a8310ac167b6f613b283caa3316a7154.tar.gz gitea-e7cb8da2a8310ac167b6f613b283caa3316a7154.zip |
Always enable caches (#28527)
Nowadays, cache will be used on almost everywhere of Gitea and it cannot
be disabled, otherwise some features will become unaviable.
Then I think we can just remove the option for cache enable. That means
cache cannot be disabled.
But of course, we can still use cache configuration to set how should
Gitea use the cache.
Diffstat (limited to 'custom/conf')
-rw-r--r-- | custom/conf/app.example.ini | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini index 9a5d190745..f10a3f2edf 100644 --- a/custom/conf/app.example.ini +++ b/custom/conf/app.example.ini @@ -1705,9 +1705,6 @@ LEVEL = Info ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; -;; if the cache enabled -;ENABLED = true -;; ;; Either "memory", "redis", "memcache", or "twoqueue". default is "memory" ;ADAPTER = memory ;; @@ -1732,8 +1729,6 @@ LEVEL = Info ;[cache.last_commit] ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; if the cache enabled -;ENABLED = true ;; ;; Time to keep items in cache if not used, default is 8760 hours. ;; Setting it to -1 disables caching |