during Fan Out On Write to load less stuff into memory
def deliver_to_followers(status)
Rails.logger.debug "Delivering status #{status.id} to followers"
- status.account.followers.find_each do |follower|
- next if !follower.local? || FeedManager.instance.filter?(:home, status, follower)
+ status.account.followers.where(domain: nil).find_each do |follower|
+ next if FeedManager.instance.filter?(:home, status, follower)
FeedManager.instance.push(:home, follower, status)
end
end
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
+ config.action_controller.asset_host = ENV['CDN_HOST']
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.