Skip to content

Commit a05aef7

Browse files
committed
remove api cache
1 parent a70f0a1 commit a05aef7

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
json.cache! ["v1", params[:per_page], @pagy.page, @speakers.maximum(:updated_at)] do
2-
json.speakers do
3-
json.array! @speakers do |speaker|
4-
json.partial! "speakers/speaker", speaker: speaker
5-
end
1+
json.speakers do
2+
json.array! @speakers do |speaker|
3+
json.partial! "speakers/speaker", speaker: speaker
64
end
5+
end
76

8-
json.pagination do
9-
json.current_page @pagy.page
10-
json.pages @pagy.pages
11-
json.next_page @pagy.next
12-
json.prev_page @pagy.prev
13-
json.total_items @pagy.count
14-
json.items_per_page @pagy.limit
15-
end
7+
json.pagination do
8+
json.current_page @pagy.page
9+
json.pages @pagy.pages
10+
json.next_page @pagy.next
11+
json.prev_page @pagy.prev
12+
json.total_items @pagy.count
13+
json.items_per_page @pagy.limit
1614
end

0 commit comments

Comments
 (0)