diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 18:12:04 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-12-30 18:12:04 +0000 |
commit | 0b5f01957e9bb7a8c975d8528c97d9852ca5905d (patch) | |
tree | 826a6c794cf11b7867ccaeedfc977780d1b7c943 | |
parent | 858ff53bceeb4803db2e3447e6b1501114f69821 (diff) | |
download | acf-weblog-0b5f01957e9bb7a8c975d8528c97d9852ca5905d.tar.bz2 acf-weblog-0b5f01957e9bb7a8c975d8528c97d9852ca5905d.tar.xz |
Revert change that disabled purge mistakenly included in 0.10.4 version bump
-rw-r--r-- | weblog-model.lua | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/weblog-model.lua b/weblog-model.lua index 36e80e4..3f1247e 100644 --- a/weblog-model.lua +++ b/weblog-model.lua @@ -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) |