mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Stage 1 of caching layer. Framework (#6693)
This commit is contained in:
committed by
GitHub
parent
28bf900205
commit
9659a6da06
@@ -185,7 +185,7 @@ func RecycleDatabaseConnection() {
|
||||
oldStore := Srv.Store
|
||||
|
||||
l4g.Warn(utils.T("api.admin.recycle_db_start.warn"))
|
||||
Srv.Store = store.NewSqlStore()
|
||||
Srv.Store = store.NewLayeredStore()
|
||||
|
||||
time.Sleep(20 * time.Second)
|
||||
oldStore.Close()
|
||||
|
||||
@@ -87,7 +87,7 @@ func NewServer() {
|
||||
}
|
||||
|
||||
func InitStores() {
|
||||
Srv.Store = store.NewSqlStore()
|
||||
Srv.Store = store.NewLayeredStore()
|
||||
}
|
||||
|
||||
type VaryBy struct{}
|
||||
|
||||
Reference in New Issue
Block a user