File tree 4 files changed +6
-10
lines changed
4 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 9
9
"time"
10
10
11
11
"code.gitea.io/gitea/modules/log"
12
+
13
+ _ "github.com/go-macaron/cache/memcache" // memcache plugin for cache
14
+ _ "github.com/go-macaron/cache/redis"
12
15
)
13
16
14
17
// Cache represents cache settings
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import (
11
11
"strings"
12
12
13
13
"code.gitea.io/gitea/modules/log"
14
- // This ensures that VirtualSessionProvider is available
15
- _ "code.gitea.io/gitea/modules/session"
16
14
17
15
"github.com/go-macaron/session"
18
16
)
Original file line number Diff line number Diff line change @@ -29,14 +29,6 @@ import (
29
29
30
30
"github.com/Unknwon/cae/zip"
31
31
"github.com/Unknwon/com"
32
- _ "github.com/go-macaron/cache/memcache" // memcache plugin for cache
33
- _ "github.com/go-macaron/cache/redis"
34
- _ "github.com/go-macaron/session/couchbase" // couchbase plugin for session store
35
- _ "github.com/go-macaron/session/memcache" // memcache plugin for session store
36
- _ "github.com/go-macaron/session/mysql" // mysql plugin for session store
37
- _ "github.com/go-macaron/session/nodb" // nodb plugin for session store
38
- _ "github.com/go-macaron/session/postgres" // postgres plugin for session store
39
- _ "github.com/go-macaron/session/redis" // redis plugin for store session
40
32
shellquote "github.com/kballard/go-shellquote"
41
33
version "github.com/mcuadros/go-version"
42
34
ini "gopkg.in/ini.v1"
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ import (
35
35
"code.gitea.io/gitea/routers/user"
36
36
userSetting "code.gitea.io/gitea/routers/user/setting"
37
37
38
+ // to registers all internal adapters
39
+ _ "code.gitea.io/gitea/modules/session"
40
+
38
41
"github.com/go-macaron/binding"
39
42
"github.com/go-macaron/cache"
40
43
"github.com/go-macaron/captcha"
You can’t perform that action at this time.
0 commit comments