Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
cache bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Oct 2, 2013
1 parent f150217 commit 4b2425d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -1691,15 +1691,17 @@ func (session *Session) cacheDelete(sql string, args ...interface{}) error {
ids = append(ids, id)
}
}
} else {
} /*else {
session.Engine.LogDebug("delete cache sql %v", newsql)
cacher.DelIds(tableName, genSqlKey(newsql, args))
}
}*/

for _, id := range ids {
session.Engine.LogDebug("delete cache obj %v %v", tableName, id)
session.Engine.LogDebug("[xorm:cacheDelete] delete cache obj", tableName, id)
cacher.DelBean(tableName, id)
}
session.Engine.LogDebug("[xorm:cacheDelete] clear cache table", tableName)
cacher.ClearIds(tableName)
return nil
}

Expand Down

0 comments on commit 4b2425d

Please sign in to comment.