aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/post_redirect.rb4
-rw-r--r--config/crontab.ugly4
-rwxr-xr-xscript/delete-old-post-redirects (renamed from script/delete-old-sessions)0
-rw-r--r--todo.txt3
4 files changed, 4 insertions, 7 deletions
diff --git a/app/models/post_redirect.rb b/app/models/post_redirect.rb
index a2e94836f..fa00bb8ac 100644
--- a/app/models/post_redirect.rb
+++ b/app/models/post_redirect.rb
@@ -26,7 +26,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: post_redirect.rb,v 1.33 2008-05-21 10:51:24 francis Exp $
+# $Id: post_redirect.rb,v 1.34 2008-06-12 14:17:30 francis Exp $
require 'openssl' # for random bytes function
@@ -90,7 +90,7 @@ class PostRedirect < ActiveRecord::Base
return post_redirects[0]
end
- # Called from cron job delete-old-sessions
+ # Called from cron job delete-old-post-redirects
def self.delete_old_post_redirects
PostRedirect.delete_all "now() - updated_at > '1 year'"
end
diff --git a/config/crontab.ugly b/config/crontab.ugly
index b1016fe97..1384e8a27 100644
--- a/config/crontab.ugly
+++ b/config/crontab.ugly
@@ -4,7 +4,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org. WWW: http://www.mysociety.org/
#
-# $Id: crontab.ugly,v 1.12 2008-05-21 22:37:34 francis Exp $
+# $Id: crontab.ugly,v 1.13 2008-06-12 14:17:31 francis Exp $
PATH=/usr/local/bin:/usr/bin:/bin
MAILTO=team@whatdotheyknow.com
@@ -17,7 +17,7 @@ MAILTO=team@whatdotheyknow.com
39 * * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/alert-overdue-requests.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/alert-overdue-requests || echo "stalled?"
# Once a day, early morning
-23 4 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/delete-old-sessions.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/delete-old-sessions || echo "stalled?"
+23 4 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/delete-old-post-redirects.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/delete-old-post-redirects || echo "stalled?"
0 8 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/alert-new-response-reminders.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/alert-new-response-reminders || echo "stalled?"
0 8 * * * !!(*= $user *)!! run-with-lockfile -n /data/vhost/!!(*= $vhost *)!!/alert-not-clarified-request.lock /data/vhost/!!(*= $vhost *)!!/mysociety/foi/script/alert-not-clarified-request || echo "stalled?"
diff --git a/script/delete-old-sessions b/script/delete-old-post-redirects
index c1354e4f4..c1354e4f4 100755
--- a/script/delete-old-sessions
+++ b/script/delete-old-post-redirects
diff --git a/todo.txt b/todo.txt
index 57ead102d..a262f9d85 100644
--- a/todo.txt
+++ b/todo.txt
@@ -1,6 +1,3 @@
-Cookie:
- Delete cronjob
-
Site move:
Install PostgresSQL 8.3
Move database