Permalink
Browse files

revert to mongo-cache

  • Loading branch information...
1 parent a8e2ce6 commit 0a9c13afaad97aec0e7ef099bd4369749dfd399e @patcito patcito committed Jul 13, 2012
Showing with 16 additions and 28 deletions.
  1. +4 −4 Gemfile
  2. +9 −20 Gemfile.lock
  3. +1 −2 app/helpers/application_helper.rb
  4. +2 −2 config/environments/production.rb
View
@@ -36,10 +36,10 @@ gem 'mongoid', :git => 'git://github.com/mongoid/mongoid.git', :branch => '2.4.0
gem 'mongoid_ext', :git => 'git://github.com/dcu/mongoid_ext.git'
-#gem 'mongo_store', :git => 'https://github.com/Houdini/mongo_store.git'
-gem 'redis'
-gem 'redis-store'
-gem 'redis-rails'
+gem 'mongo_store', :git => 'https://github.com/Houdini/mongo_store.git'
+#gem 'redis'
+#gem 'redis-store'
+#gem 'redis-rails'
# utils
gem 'whatlanguage', '1.0.0'
View
@@ -77,6 +77,14 @@ GIT
social_widgets (0.1.0)
rails
+GIT
+ remote: https://github.com/Houdini/mongo_store.git
+ revision: 46d8edc81c42110c4091d600722c8352a412a51f
+ specs:
+ mongo_store (0.3.1)
+ activesupport (>= 2.2)
+ mongo (>= 1.0)
+
GEM
remote: http://rubygems.org/
specs:
@@ -344,23 +352,6 @@ GEM
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
- redis (2.2.2)
- redis-actionpack (3.2.3)
- actionpack (~> 3.2.3)
- redis-rack (~> 1.4.0)
- redis-store (~> 1.1.0)
- redis-activesupport (3.2.3)
- activesupport (~> 3.2.3)
- redis-store (~> 1.1.0)
- redis-rack (1.4.1)
- rack (= 1.4.1)
- redis-store (~> 1.1.0)
- redis-rails (3.2.3)
- redis-actionpack (~> 3.2.3)
- redis-activesupport (~> 3.2.3)
- redis-store (~> 1.1.0)
- redis-store (1.1.0)
- redis (~> 2.2.0)
remarkable (4.0.0.alpha4)
rspec (>= 2.0.0.alpha11)
remarkable_activemodel (4.0.0.alpha4)
@@ -515,6 +506,7 @@ DEPENDENCIES
mechanize
mini_magick (~> 2.3)
mongo (= 1.4.0)
+ mongo_store!
mongoid!
mongoid_ext!
multiauth!
@@ -534,9 +526,6 @@ DEPENDENCIES
rack-ssl
rails (= 3.2.6)
rdiscount!
- redis
- redis-rails
- redis-store
remarkable_mongoid (>= 0.5.0)
ricodigo-capistrano-recipes (~> 0.1.3)
rinku (~> 1.2.2)
@@ -537,8 +537,7 @@ def cache_key_for(name, *args)
args << current_group.language.to_s
end
args += @languages.sort if @languages
-
- Digest::MD5.hexdigest(args.to_s)
+ args
end
def payment_form(title, options = {})
@@ -26,8 +26,8 @@
# Use a different cache store in production
# config.cache_store = :mem_cache_store
- # config.cache_store = :mongo_store, 'mongo_store_cache', {:expires_in => 2.hours, :db => 'shapado-cache'}
- config.cache_store = :redis_store, {:expires_in => 2.hours}
+ config.cache_store = :mongo_store, 'mongo_store_cache', {:expires_in => 2.hours, :db => 'shapado-cache'}
+ #config.cache_store = :redis_store, {:expires_in => 2.hours}
#config.cache_store = [:file_store, "#{Rails.root}/tmp/cache"]

0 comments on commit 0a9c13a

Please sign in to comment.