From 6ef85409ea071f598db3ed343d82d1dfc7b117e0 Mon Sep 17 00:00:00 2001 From: echarp Date: Sat, 14 Jul 2018 19:23:56 +0200 Subject: [PATCH] Regions filter is now cached, the main adl page should render faster... --- app/views/layouts/application.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 8a5092aa..a34187d2 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -21,7 +21,8 @@ controller.controller_name, controller.action_name] %body{ class: classes } %header.top - = render '/regions/filter' + - cache "regions_filter_#{session[:region]}" do + = render '/regions/filter' = image_tag 'baby_gnu_adl.png', alt: '', class: :logo = render '/orgas/search'