temporarily disable redis caching during seed script

This commit is contained in:
Ilya Zhitomirskiy 2011-10-05 10:39:17 -07:00
parent 8c15ca2a4b
commit 0d00265392
2 changed files with 6 additions and 1 deletions

View file

@ -57,6 +57,9 @@ require 'spec/support/fake_resque'
require 'spec/support/fake_redis'
require 'spec/support/user_methods'
old_cache_setting = AppConfig[:redis_cache]
AppConfig[:redis_cache] = false
print "Seeding post data..."
time_interval = 1000
(1..25).each do |n|
@ -78,6 +81,9 @@ time_interval = 1000
end
end
puts " done!"
AppConfig[:redis_cache] = old_cache_setting
puts "Successfully seeded the db with users eve, bob, and alice (password: 'evankorth')"
puts ""

View file

@ -1,7 +1,6 @@
# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
#
class RedisCache