Skip to content

why not support a method to dynamic clear cache ? #31

Open
@wzhsh90

Description

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 ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions