aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-06-09 14:10:54 +0000
committerfrancis <francis>2008-06-09 14:10:54 +0000
commitf0763b4b8033ba60893e17e29325d6f426b7cf17 (patch)
tree76b8a0dc9861b942ed271a29db8bba718db53425
parent750c4dc860db0047d3ed576fc3e211275e26d67b (diff)
Script to clear cache of attachment info
-rwxr-xr-xscript/clear-attachment-cache9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/clear-attachment-cache b/script/clear-attachment-cache
new file mode 100755
index 000000000..5cf1dc4c4
--- /dev/null
+++ b/script/clear-attachment-cache
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# Clear the cache of attachment text.
+
+LOC=`dirname $0`
+
+$LOC/runner "ActiveRecord::Base.connection.execute(\"update incoming_messages set cached_attachment_text = null\")"
+
+