mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Merge branch 'master' into post-metadata
This commit is contained in:
@@ -198,6 +198,7 @@ func (s *LayeredStore) UnlockFromMaster() {
|
||||
}
|
||||
|
||||
func (s *LayeredStore) DropAllTables() {
|
||||
defer s.LocalCacheLayer.Invalidate()
|
||||
s.DatabaseLayer.DropAllTables()
|
||||
}
|
||||
|
||||
|
||||
@@ -111,3 +111,9 @@ func (s *LocalCacheSupplier) doClearCacheCluster(cache utils.ObjectCache) {
|
||||
s.cluster.SendClusterMessage(msg)
|
||||
}
|
||||
}
|
||||
|
||||
func (s *LocalCacheSupplier) Invalidate() {
|
||||
s.doClearCacheCluster(s.reactionCache)
|
||||
s.doClearCacheCluster(s.roleCache)
|
||||
s.doClearCacheCluster(s.schemeCache)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user