#!/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