PLT-4853 Adding cache purging to the server (server) (#4735)
* PLT-4853 Adding caching invalidation to HA * PLT-4853 Adding cach purging to the server
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
7acd135e02
Коммит
c4974374d9
@@ -35,6 +35,10 @@ type SqlUserStore struct {
|
||||
|
||||
var profilesInChannelCache *utils.Cache = utils.NewLru(PROFILES_IN_CHANNEL_CACHE_SIZE)
|
||||
|
||||
func ClearUserCaches() {
|
||||
profilesInChannelCache.Purge()
|
||||
}
|
||||
|
||||
func NewSqlUserStore(sqlStore *SqlStore) UserStore {
|
||||
us := &SqlUserStore{sqlStore}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user