Dynamic content in layouts

hi
rails doesn t cache layouts, your problem is likely to be a coding error

also for your case i think it is better to have more than 1 layout (ie one layout for a specific set of links)