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() } }