Stage 1 of caching layer. Framework (#6693)

This commit is contained in:
Christopher Speller
2017-06-27 08:02:08 -07:00
committed by GitHub
parent 28bf900205
commit 9659a6da06
38 changed files with 1260 additions and 1042 deletions

View File

@@ -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()

View File

@@ -87,7 +87,7 @@ func NewServer() {
}
func InitStores() {
Srv.Store = store.NewSqlStore()
Srv.Store = store.NewLayeredStore()
}
type VaryBy struct{}