app/controllers/program_controller.rb
#
# Set up the cache for the published data. This is so we do not need to hit the DB everytime someone request the published programme grid.
# For now we only have the cached objects around for 10 minutes. Which means that when the publish has been done within 10 minutes folks
# will see the new data...
#
Set up the cache for the published data. This is so we do not need to hit the DB everytime someone request the published programme grid.
For now we only have the cached objects around for 10 minutes. Which means that when the publish has been done within 10 minutes folks
will see the new data
Set up the cache for the published data . This is so we do not need to hit the DB everytime someone request the published programme grid . For now we only have the cached objects around for 10 minutes . Which means that when the publish has been done within 10 minutes folks will see the new data
def index
    @singleVenue = Venue.count == 1
    @extra_item_json = [] if ! @extra_item_json
    if !json_fragment_exist?( [request.host, request.path, params[:scale]] )
      conditions = getConditions(params)
      @programmeItems = PublishedProgramItemsService.getPublishedProgramItems
      @scale = params[:scale].to_f
      @cloudinaryURI = get_base_image_url
      @partition_val = /upload/
      respond_to do |format|
        format.json
      end
    end
  end
def index @singleVenue = Venue . count == 1 @extra_item_json = [ ] if ! @extra_item_json if ! json_fragment_exist? ( [ request . host , request . path , params [ :scale ] ] ) conditions = getConditions ( params ) @programmeItems = PublishedProgramItemsService . getPublishedProgramItems @scale = params [ :scale ] . to_f @cloudinaryURI = get_base_image_url @partition_val = / upload / respond_to do | format | format . json end end end
Set up the cache for the published data.
Set up the cache for the published data .