diff --git a/script/fill_flagged_cache.rb b/script/fill_flagged_cache.rb new file mode 100755 index 00000000..05d1380b --- /dev/null +++ b/script/fill_flagged_cache.rb @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +APP_PATH = File.expand_path('../../config/application', __FILE__) +require File.expand_path('../../config/boot', __FILE__) +require APP_PATH +Rails.application.require_environment! + +# fills the cache - used by app/views/users/show.html.erb for mods + +FlaggedCommenters.new('1m').commenters