Hi Craig,

thanks for the reply!  I've seen that as well, but using Rails 2.3.0
right now it has memcache-client built in, and using Rails.cache.fetch
does the fetch.  But problem is, the built in version does not have a
"reset" method to call.  The source listed on github shows a reset
function, but the built in rails version doesn't seem to support it.

I'm ready to try the fix but still searching for ways to reset the
connections in a rails 2.3 implementation.  Perhaps it's too new?  I'm
almost certain many people are doing this already somewhere.

Thanks,
Art

On May 4, 1:38 am, Craig R Webster <cr...@xeriom.net> wrote:
> Hi,
>
> I don't have a link just now (typing on my phone [which is also why  
> I'm top posting, sorry]) but the Passenger FAQ has a little section on  
> Memcached and how to work with it.
>
> You have to tell Passenger to reset the connections when it forks a  
> new application instance. A Google for something like "Passenger  
> Memcached Reset environment.rb" should get you the FAQ entry.
>
> Cheers,
> Craig
> --
> Craig Webster |http://barkingiguana.com/
> Xeriom Networks |http://xeriom.net/
>
> On 4 May 2009, at 08:23, kineticac <kineti...@gmail.com> wrote:
>
>
>
> > Is this the right place to post help for memcached and rails apps?
>
> > My rails app is running great in development with memcached, but when
> > I tossed it up on production, with the exact same setup, it stopped
> > working with very little error messaging.
>
> > I'm using Phusion Passenger which runs Apache, Ruby Enterprise,
> > memcach-client gem, and of course memcached.
>
> > I keep hearing about a lot of issues (inconsistent) with passenger and
> > memcached, and then with REE and memcached, but can't seem to find a
> > definitive answer to any of these.  I feel like all production servers
> > use REE, passenger, and memcached together more often then not.  I'm
> > not sure how to address these problems and what special items I need
> > to setup.
>
> > If anyone has any info on what differences I need to take on a
> > production server that might differ from my development?
>
> > Thanks

Reply via email to