@@ -0,0 +1,29 @@
|
||||
package dataclean
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"91porn-server/common/timeutil"
|
||||
)
|
||||
|
||||
func RunSync() {
|
||||
today := timeutil.BeginningOfDay(time.Now())
|
||||
|
||||
// log库清理
|
||||
go clearVisitLog(today, 7)
|
||||
go clearPlayLog(today)
|
||||
go clearSearchLog(today)
|
||||
go clearLoginTime(today)
|
||||
go clearUserRegisterLog(today)
|
||||
|
||||
// stat库清理
|
||||
go clearKeywordStat(today)
|
||||
go clearNewsHot(today)
|
||||
go clearKwRankStat(today)
|
||||
go clearVideoStat(today)
|
||||
|
||||
// 主库清理
|
||||
go clearNoticeFmt(today)
|
||||
go clearUserAct(today)
|
||||
go clearGuestUser(today)
|
||||
}
|
||||
Reference in New Issue
Block a user