Commit 0b5f0195 authored by Ted Trask's avatar Ted Trask

Revert change that disabled purge mistakenly included in 0.10.4 version bump

parent 858ff53b
......@@ -251,21 +251,20 @@ end
-- Delete useage stats from more than a year ago
local groomusagestat = function()
-- local res = assert (con:execute("delete from usagestat where " ..
-- "date < (now() - INTERVAL '1 year')"))
-- logme("removed " .. res .. " old usage status lines")
local res = assert (con:execute("delete from usagestat where " ..
"date < (now() - INTERVAL '1 year')"))
logme("removed " .. res .. " old usage status lines")
end
-- Delete history log information from more than a month ago
local groomdbhistlog = function()
-- local res = assert (con:execute("delete from dbhistlog where " ..
-- "logdatetime < (now() - INTERVAL '1 month')"))
-- logme("removed " .. res .. " old dbhistlog lines")
local res = assert (con:execute("delete from dbhistlog where " ..
"logdatetime < (now() - INTERVAL '1 month')"))
logme("removed " .. res .. " old dbhistlog lines")
end
-- Delete old junk from pub tables
local groompublogs = function()
--[[
local purgedays = config.purgedays or 30
local now = os.time()
......@@ -285,7 +284,6 @@ local groompublogs = function()
sql = "delete from pubweblog_history where logdatetime < (now() - INTERVAL '1 year')"
res = assert (con:execute(sql))
logme("Deleted " .. res .. " old records from pubweblog_history")
--]]
end
local generatewhereclause = function(clientuserid, starttime, endtime, clientip, badyesno, deniedyesno, bypassyesno, score, urisearch, selected, sourcename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment