From 6fe0af894a5398f3a811e83edc074cc761f4911a Mon Sep 17 00:00:00 2001 From: francis Date: Wed, 23 Jul 2008 23:41:42 +0000 Subject: Make clear both caches and rename --- script/clear-incoming-text-cache | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 script/clear-incoming-text-cache (limited to 'script/clear-incoming-text-cache') 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\")" + + -- cgit v1.2.3