Rails page caching and flash messages

Posted by KJF on Stack Overflow See other posts from Stack Overflow or by KJF
Published on 2010-02-26T17:44:25Z Indexed on 2010/05/22 8:40 UTC
Read the original article Hit count: 256

I'm pretty sure I can page cache the vast majority of my site but the one thing preventing me from doing so is that my flash messages will not show, or they'll show at the wrong time.

One thing I'm considering is writing the flash message to a cookie, reading it and displaying it via javascript and clearing the cookie once the message has been displayed. Has anyone had any success doing this or are there better methods?

Thanks.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about caching