aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorfrancis <francis>2009-09-17 10:24:34 +0000
committerfrancis <francis>2009-09-17 10:24:34 +0000
commit6c251bd414c4a6ea10cc74f25db1d9c5f2fbb15c (patch)
tree7e21693480ce2ba4192249b3dc81a8bac7c24c9c /script
parent7220c3a29466b507e49828af34bde5dd5edc10c4 (diff)
Store only clipped attachment text in database.
Diffstat (limited to 'script')
-rwxr-xr-xscript/clear-incoming-text-cache9
1 files changed, 5 insertions, 4 deletions
diff --git a/script/clear-incoming-text-cache b/script/clear-incoming-text-cache
index d03991341..01ea95edc 100755
--- a/script/clear-incoming-text-cache
+++ b/script/clear-incoming-text-cache
@@ -4,9 +4,10 @@
LOC=`dirname $0`
-$LOC/runner "ActiveRecord::Base.connection.execute(\"update incoming_messages set cached_attachment_text = null, cached_main_body_text = null\")"
+$LOC/runner "ActiveRecord::Base.connection.execute(\"update incoming_messages set cached_attachment_text_clipped = null, cached_main_body_text = null\")"
-# Remove page caches
-rm -fr $LOC/../public/request
-rm -fr $LOC/../cache
+# Remove page cache (do it in two stages so live site gets cache cleared faster)
+rm -fr $LOC/../old-cache
+mv $LOC/../cache $LOC/../old-cache
+rm -fr $LOC/../old-cache