# Problems with stale sessions and cached pages

**URL:** <https://www.ruby-forum.com/t/problems-with-stale-sessions-and-cached-pages/132975>\
**Category:** Rails\
**Created:** [March 26, 2008, 11:30am UTC](https://www.ruby-forum.com/t/problems-with-stale-sessions-and-cached-pages/132975 "2008-03-26T11:30:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thehunfromoz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/278dde/32.png) [@thehunfromoz](https://www.ruby-forum.com/u/thehunfromoz)\
**Post date:** [March 26, 2008, 11:30am UTC](https://www.ruby-forum.com/t/problems-with-stale-sessions-and-cached-pages/132975/1 "2008-03-26T11:30:26Z")

</div>

I’m using Apache+Mongrel with Ruby 1.86 and Rails 1.2.3. I’m using  
auth\_generator for user sessions, MySQL-based application sessions and  
comatose for my content mgmt system. Every now and again,  
auth\_generator gets confused with who’s logged in and once in a  
whilst, when someone updates an article using comatose, the page cache  
isn’t being flushed, even after forcing a page cache flush with the  
provided comatose link to do just that.

Both of these problems are corrected by restarting the mongrel  
cluster … but I’m concerned that if/when the site starts to get busy  
then I won’t be able to keep restarting the mongrels without effecting  
users activities.

Anyone experienced the same ? … and what does one do about it ?.

Thanks in Advance,  
Attila
