diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2018-08-30 10:28:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-30 10:28:58 -0400 |
commit | c8e473a789aee912d57c0d42b32fbbbfb3b4228a (patch) | |
tree | d1700f1e897f08e7305e40d59b85f7a483e4a11a /store/local_cache_supplier_schemes.go | |
parent | 570c52b4cc88d7d0864511b9a4cb6318a07a6dbb (diff) | |
download | chat-c8e473a789aee912d57c0d42b32fbbbfb3b4228a.tar.gz chat-c8e473a789aee912d57c0d42b32fbbbfb3b4228a.tar.bz2 chat-c8e473a789aee912d57c0d42b32fbbbfb3b4228a.zip |
Invalidate store cache after making changes (#9211)
* Invalidate store cache after making changes
* Address feedback
* Make cache invalidation in stores always use defer
Diffstat (limited to 'store/local_cache_supplier_schemes.go')
-rw-r--r-- | store/local_cache_supplier_schemes.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/store/local_cache_supplier_schemes.go b/store/local_cache_supplier_schemes.go index 2f201c17b..8dd1feded 100644 --- a/store/local_cache_supplier_schemes.go +++ b/store/local_cache_supplier_schemes.go @@ -53,6 +53,7 @@ func (s *LocalCacheSupplier) SchemeGetAllPage(ctx context.Context, scope string, func (s *LocalCacheSupplier) SchemePermanentDeleteAll(ctx context.Context, hints ...LayeredStoreHint) *LayeredStoreSupplierResult { defer s.doClearCacheCluster(s.schemeCache) + defer s.doClearCacheCluster(s.roleCache) return s.Next().SchemePermanentDeleteAll(ctx, hints...) } |