summaryrefslogtreecommitdiffstats
path: root/weblog-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-10-04 03:10:57 +0000
committerTed Trask <ttrask01@yahoo.com>2015-10-04 03:10:57 +0000
commitc1540fcbbdab360706e959841d1cf94f35a6336a (patch)
treea7bf8c9a5c3a0df94cdfd80d32273ae3ae7e2baf /weblog-model.lua
parentb60a647c653f8dadf14ce6faec886d8678389f27 (diff)
downloadacf-weblog-c1540fcbbdab360706e959841d1cf94f35a6336a.tar.bz2
acf-weblog-c1540fcbbdab360706e959841d1cf94f35a6336a.tar.xz
Bump version to 0.10.4v0.10.4
Diffstat (limited to 'weblog-model.lua')
-rw-r--r--weblog-model.lua14
1 files changed, 8 insertions, 6 deletions
diff --git a/weblog-model.lua b/weblog-model.lua
index a44d6b6..91782c5 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -251,20 +251,21 @@ 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()
@@ -284,6 +285,7 @@ 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)