From 5bbe601110c4b4a28cd131b664fc6fea447e127d Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Fri, 13 Sep 2024 23:42:55 +0300 Subject: [PATCH] Enable caching of halfnarp talks --- app/views/api/events/halfnarp_friendly.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api/events/halfnarp_friendly.jbuilder b/app/views/api/events/halfnarp_friendly.jbuilder index 2ac6672..989201b 100644 --- a/app/views/api/events/halfnarp_friendly.jbuilder +++ b/app/views/api/events/halfnarp_friendly.jbuilder @@ -1,4 +1,4 @@ -json.array! @events do |event| +json.array! @events, cached: ->(event) { [event, event.track, event.event_type] } do |event| json.id event.id json.title event.title json.abstract event.abstract