Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
use cache in places page
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Jun 12, 2016
1 parent 8161e53 commit 1fc291d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/places_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class PlacesController < ApplicationController

def index
@places = Place.acquire_by_params(current_user, params)
fresh_when(@places)
end

def show
Expand Down

0 comments on commit 1fc291d

Please sign in to comment.