unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* Memcache reset on rails 2.3 with preload
@ 2011-03-10 17:16 Troex Nevelin
  2011-03-10 20:48 ` Clifton King
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Troex Nevelin @ 2011-03-10 17:16 UTC (permalink / raw)
  To: mongrel-unicorn

What is a right code for resetting memcache connection in after_fork for 
Rails 2.3 with "preload_app true" on REE?

The only configurations about memcache in my app are:

config/initializers/session_store.rb:
ActionController::Base.session_store = :mem_cache_store

config/environment.rb:
config.cache_store = :mem_cache_store


I tried:
Rails.cache.reset

But it fails to start, looks like this code is for Rails3 only
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-23 20:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 17:16 Memcache reset on rails 2.3 with preload Troex Nevelin
2011-03-10 20:48 ` Clifton King
2011-03-10 21:23 ` Eric Wong
2011-03-10 22:14   ` Clifton King
2011-03-10 22:01 ` Lawrence Pit
2011-03-23 18:25   ` Troex Nevelin

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).