aboutsummaryrefslogtreecommitdiffstats
path: root/script/clear-incoming-text-cache
blob: d03991341c1e61cb0c65a002cc5ac74cbfbf82a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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\")"

# Remove page caches
rm -fr $LOC/../public/request
rm -fr $LOC/../cache