Cache the footer

This commit is contained in:
Brenda Wallace
2019-12-01 08:54:15 +13:00
committed by Brenda Wallace
parent b443435627
commit b3ecfa36cd

View File

@@ -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"