Topic: Caching a news column (active record objects)

Hi everyone,

In my project every page has a news column showing the last 5 headlines + short teasers.
Now it does not really make sense to fetch the news from the database every time the user
goes to a new subpage. Is there a simple way of caching the news like using a global
variable that only gets updated when the news in the db change or something like that? I also
read about memcached but I

Re: Caching a news column (active record objects)

Look into fragment caching. It allows you to cache a section of a page.

Railscasts - Free Ruby on Rails Screencasts

Re: Caching a news column (active record objects)

Thanks ryanb, that