From 89b1aace8acda29b079816732796d884764e30cf Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Mon, 8 Oct 2012 16:42:49 +0800 Subject: [PATCH] fix for rescue job failed on 171 --- config/initializers/resque.rb | 2 +- lib/tasks/mid_site_sync.rake | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config/initializers/resque.rb b/config/initializers/resque.rb index 0fa2a4c6..bd7a91fe 100644 --- a/config/initializers/resque.rb +++ b/config/initializers/resque.rb @@ -3,7 +3,7 @@ require 'resque_scheduler/server' # require 'yaml' Resque.redis = 'localhost:6379' -Resque.redis.namespace = "resque:nccu" +Resque.redis.namespace = "resque" # If you want to be able to dynamically change the schedule, # uncomment this line. A dynamic schedule can be updated via the diff --git a/lib/tasks/mid_site_sync.rake b/lib/tasks/mid_site_sync.rake index 707a609b..e3ee411b 100644 --- a/lib/tasks/mid_site_sync.rake +++ b/lib/tasks/mid_site_sync.rake @@ -77,7 +77,6 @@ namespace :mid_site do local_user.save! end sys_users = User.all(conditions: {admin: false}).includes(:avatar).to_a - Rails.cache.write('user_setting', sys_users) end