From 99b98bfee464e3cfd42bb00103fdecca7628ae8b Mon Sep 17 00:00:00 2001 From: Umputun Date: Tue, 13 Feb 2018 11:48:00 -0600 Subject: [PATCH] async postFlush --- app/rest/common/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rest/common/cache.go b/app/rest/common/cache.go index edd87504..58446f1a 100644 --- a/app/rest/common/cache.go +++ b/app/rest/common/cache.go @@ -41,6 +41,6 @@ func (lc *loadingCache) Get(key string, ttl time.Duration, fn func() ([]byte, er func (lc *loadingCache) Flush() { lc.bytesCache.Flush() if lc.postFlushFn != nil { - lc.postFlushFn() + go lc.postFlushFn() } }