goview
goview copied to clipboard
why not support a method to dynamic clear cache ?
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 ?