Hmm... seems to be querying the database every single time for some
this is how it looks like (categories instead of airlines in this
class Category < ActiveRecord::Base
@@all_categories ||= find(:all, :order => "name")
@@all_categories = nil
# in some controller
@cat = Category.get_categories # this statement always ends up in a db
expire_categories is not used yet in my code so nobody is setting it to
Posted via http://www.ruby-forum.com/.
In development mode, the models get reloaded on each request (IIRC), so
the value of @@all_categories gets reset every time you call the page.