diff options
-rwxr-xr-x | script/clear-attachment-cache | 9 |
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\")" + + |