search for: find_all_messag

Displaying 1 result from an estimated 1 matches for "find_all_messag".

Did you mean: find_all_messages
2006 Jan 19
1
Caching suggestions
...built using some queries to the DB. I tried caching which didnt work properly because for some reason rails kep loading the old cache..Anyway What I was wondering is caching only avoids the render process but IMHO the queries are the most consuming. My code is something like def index @messages =find_all_messages # other stuff which does db query and some biz logic to create arrays which are used in the view render :action =>''index'' end Even though the index can be cached the code to create the user''s homepage related variables are recalculated?How do I avoid that? Has any...