You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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 ?
The text was updated successfully, but these errors were encountered: