mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-05 11:11:13 +00:00
Merge pull request #2949 from weaveworks/reset-all-caches
make render.ResetCache() reset all caches
This commit is contained in:
@@ -75,8 +75,3 @@ func (p *promise) Get() Nodes {
|
||||
<-p.done
|
||||
return p.val
|
||||
}
|
||||
|
||||
// ResetCache blows away the rendered node cache.
|
||||
func ResetCache() {
|
||||
renderCache.Purge()
|
||||
}
|
||||
|
||||
@@ -225,3 +225,10 @@ func (ret *joinResults) copyUnmatched(input Nodes) {
|
||||
func (ret *joinResults) result() Nodes {
|
||||
return Nodes{Nodes: ret.nodes}
|
||||
}
|
||||
|
||||
// ResetCache blows away the rendered node cache, and known service
|
||||
// cache.
|
||||
func ResetCache() {
|
||||
renderCache.Purge()
|
||||
knownServiceCache.Purge()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user