1
0
espelhamento de https://github.com/astaxie/beego.git sincronizado 2025-07-17 18:52:16 +00:00

orm add ResetModelCache api for test case

Esse commit está contido em:
slene
2014-03-10 20:52:04 +08:00
commit de asta.xie
commit 53aaf3b4a9

Ver arquivo

@@ -98,3 +98,9 @@ func (mc *_modelCache) clean() {
mc.cacheByFN = make(map[string]*modelInfo)
mc.done = false
}
// Clean model cache. Then you can re-RegisterModel.
// Common use this api for test case.
func ResetModelCache() {
modelCache.clean()
}