aboutsummaryrefslogtreecommitdiffstats
path: root/script/clear-incoming-text-cache
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2009-12-17 01:27:23 +0000
committerFrancis Irving <francis@mysociety.org>2009-12-17 01:27:23 +0000
commitd38239671ca1a0149621512f7bf4a81cb8cbc388 (patch)
tree638f15f4d0577d550cb11ef68d04d443696b7aba /script/clear-incoming-text-cache
parent43ea5cfff89ffaa8cc3c3cfff4154a7dccc87bce (diff)
Give it a better name, as it is more general now
Diffstat (limited to 'script/clear-incoming-text-cache')
-rwxr-xr-xscript/clear-incoming-text-cache13
1 files changed, 0 insertions, 13 deletions
diff --git a/script/clear-incoming-text-cache b/script/clear-incoming-text-cache
deleted file mode 100755
index 01ea95edc..000000000
--- a/script/clear-incoming-text-cache
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-# Clear the cache of attachment and body text.
-
-LOC=`dirname $0`
-
-$LOC/runner "ActiveRecord::Base.connection.execute(\"update incoming_messages set cached_attachment_text_clipped = null, cached_main_body_text = null\")"
-
-# Remove page cache (do it in two stages so live site gets cache cleared faster)
-rm -fr $LOC/../old-cache
-mv $LOC/../cache $LOC/../old-cache
-rm -fr $LOC/../old-cache
-