aboutsummaryrefslogtreecommitdiffstats
path: root/script/clear-incoming-text-cache
diff options
context:
space:
mode:
authorfrancis <francis>2008-07-23 23:41:42 +0000
committerfrancis <francis>2008-07-23 23:41:42 +0000
commit6fe0af894a5398f3a811e83edc074cc761f4911a (patch)
tree1edd549c60bed63338ecd7765a8ea614ae2e9e78 /script/clear-incoming-text-cache
parentc3da447a2635d4a0f08b54a3e6abf1d166e53bd8 (diff)
Make clear both caches and rename
Diffstat (limited to 'script/clear-incoming-text-cache')
-rwxr-xr-xscript/clear-incoming-text-cache9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/clear-incoming-text-cache b/script/clear-incoming-text-cache
new file mode 100755
index 000000000..2b3273017
--- /dev/null
+++ b/script/clear-incoming-text-cache
@@ -0,0 +1,9 @@
+#!/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 = null, cached_main_body_text = null\")"
+
+