goview icon indicating copy to clipboard operation
goview copied to clipboard

why not support a method to dynamic clear cache ?

Open wzhsh90 opened this issue 2 years ago • 0 comments

I set the view engine DisableCache false , but I also need dynamic the clear the cache.

can you support a method like this ?

func (e *ViewEngine) ClearAllCache() { e.tplMutex.RLock() e.tplMap = make(map[string]*template.Template) e.tplMutex.RUnlock() } I also suggest change DisableCache to Cache ?

wzhsh90 avatar May 18 '22 04:05 wzhsh90