From f0763b4b8033ba60893e17e29325d6f426b7cf17 Mon Sep 17 00:00:00 2001 From: francis Date: Mon, 9 Jun 2008 14:10:54 +0000 Subject: Script to clear cache of attachment info --- script/clear-attachment-cache | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 script/clear-attachment-cache (limited to 'script/clear-attachment-cache') 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\")" + + -- cgit v1.2.3