diff --git a/database/gdb/gdb_model_cache.go b/database/gdb/gdb_model_cache.go index 914f315dc..32501c08f 100644 --- a/database/gdb/gdb_model_cache.go +++ b/database/gdb/gdb_model_cache.go @@ -129,6 +129,7 @@ func (m *Model) makeSelectCacheKey(sql string, args ...interface{}) string { if len(cacheKey) == 0 { cacheKey = fmt.Sprintf( `GCache@Schema(%s):%s`, + m.db.GetSchema(), gmd5.MustEncryptString(sql+", @PARAMS:"+gconv.String(args)), ) } diff --git a/version.go b/version.go index 965f956ed..2369cb189 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package gf -const VERSION = "v2.0.5" +const VERSION = "v2.0.6" const AUTHORS = "john"