refactor(config): 移除未使用的数据库查询函数 移除了 dbm_nocache 函数,该函数已被注释掉且不再使用, 同时保留了 dbm_nocache_noenable 函数用于无缓存查询操作。 ```
This commit is contained in:
@@ -30,19 +30,7 @@ func dbm_notenable(m cool.IModel) *gdb.Model {
|
||||
}
|
||||
return ret
|
||||
}
|
||||
func dbm_nocache(m cool.IModel) *gdb.Model {
|
||||
ret := cool.DBM(m)
|
||||
if cool.Config.ServerInfo.IsVip == 0 { //正式服启动缓存
|
||||
ret = ret.Where("is_enable", 1)
|
||||
}
|
||||
// if cool.Config.ServerInfo.IsDebug == 0 {
|
||||
|
||||
// ret = ret.Cache(gdb.CacheOption{
|
||||
// Force: false,
|
||||
// })
|
||||
// }
|
||||
return ret
|
||||
}
|
||||
func dbm_nocache_noenable(m cool.IModel) *gdb.Model {
|
||||
ret := cool.DBM(m)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user