From ba43d104db0c5f00eb25947d267994185876be02 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 11 Dec 2010 10:36:59 -0500 Subject: [PATCH] cache item_zone_sets.json too --- app/controllers/item_zone_sets_controller.rb | 4 +++- public/.gitignore | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/item_zone_sets_controller.rb b/app/controllers/item_zone_sets_controller.rb index 6ad3fe37..cbfcdabb 100644 --- a/app/controllers/item_zone_sets_controller.rb +++ b/app/controllers/item_zone_sets_controller.rb @@ -1,5 +1,7 @@ class ItemZoneSetsController < ApplicationController + caches_page :index + def index - render :json => Zone::ItemZoneSets.keys.sort.as_json, :callback => params[:callback] + render :json => Zone::ItemZoneSets.keys.sort.as_json end end diff --git a/public/.gitignore b/public/.gitignore index 86801bc1..fea7ff82 100644 --- a/public/.gitignore +++ b/public/.gitignore @@ -1 +1,2 @@ /pet_attributes.json +/item_zone_sets.json