diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml index aac6212d6..1281395ae 100644 --- a/app/views/layouts/_footer.html.haml +++ b/app/views/layouts/_footer.html.haml @@ -1,12 +1,13 @@ -.container-fluid.text-center.text-md-left - .row - .col-md-4#footer1 - != cms_snippet_content(:footer1) - .col-md-4#footer2 - != cms_snippet_content(:footer2) - .col-md-4#footer3 - .badge.badge-success= link_to 'API', '/api-docs' - != cms_snippet_content(:footer3) - %div{ style: "float: right;" } - = link_to "https://opendefinition.org/ossd/" do - = image_tag 'open_service.png', alt: "Open Service" +- cache 'footer', expires: 1.week do + .container-fluid.text-center.text-md-left + .row + .col-md-4#footer1 + != cms_snippet_content(:footer1) + .col-md-4#footer2 + != cms_snippet_content(:footer2) + .col-md-4#footer3 + .badge.badge-success= link_to 'API', '/api-docs' + != cms_snippet_content(:footer3) + %div{ style: "float: right;" } + = link_to "https://opendefinition.org/ossd/" do + = image_tag 'open_service.png', alt: "Open Service"