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 /routers/init.go | |
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 'routers/init.go')
-rw-r--r-- | routers/init.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/init.go b/routers/init.go index c1cfe26bc4..ee98aedb16 100644 --- a/routers/init.go +++ b/routers/init.go @@ -118,7 +118,7 @@ func InitWebInstalled(ctx context.Context) { mustInit(storage.Init) mailer.NewContext(ctx) - mustInit(cache.NewContext) + mustInit(cache.Init) mustInit(feed_service.Init) mustInit(uinotification.Init) mustInitCtx(ctx, archiver.Init) |