From 5efbb268a50e6231dfb2240983ea5d50c0af8616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=94=E5=BF=B5?= <12574910+72wo@users.noreply.github.com> Date: Thu, 19 Feb 2026 00:32:22 +0800 Subject: [PATCH] =?UTF-8?q?```=20refactor(config):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 dbm_nocache 函数,该函数已被注释掉且不再使用, 同时保留了 dbm_nocache_noenable 函数用于无缓存查询操作。 ``` --- modules/config/service/base.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/config/service/base.go b/modules/config/service/base.go index 08171df17..cf2960c71 100644 --- a/modules/config/service/base.go +++ b/modules/config/service/base.go @@ -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)