schedule renders 10x faster now. Caching disabled

This commit is contained in:
Ancor Gonzalez Sosa 2013-07-16 18:16:37 +02:00
parent 740a604c01
commit 08637503e5
2 changed files with 10 additions and 6 deletions

View file

@ -1,13 +1,12 @@
class ScheduleController < ApplicationController
layout "application"
caches_page :index
def index
@conference = Conference.find_all_by_short_title(params[:conference_id]).first
@conference = Conference.includes(:rooms, {:events => [:speakers, :track, :event_type]}).where("conferences.short_title" => params[:conference_id]).first
@rooms = @conference.rooms
@events = @conference.events
@dates = @conference.start_date..@conference.end_date
@rooms = @conference.rooms
end
end