Essais de cache pour accélérer encore la page principale
This commit is contained in:
parent
68df6d45d6
commit
d18eb7aa18
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
= render '/regions/selector'
|
= render '/regions/selector'
|
||||||
|
|
||||||
= render '/lugs/search'
|
- cache do
|
||||||
|
= render '/lugs/search'
|
||||||
|
|
||||||
- if params[:year]
|
- if params[:year]
|
||||||
-# Whole year calendar
|
-# Whole year calendar
|
||||||
@ -46,7 +47,8 @@
|
|||||||
%strong.city= event.city.gsub '-', ' '
|
%strong.city= event.city.gsub '-', ' '
|
||||||
= event.title
|
= event.title
|
||||||
|
|
||||||
.formats
|
- cache do
|
||||||
|
.formats
|
||||||
%em.fa.fa-rss
|
%em.fa.fa-rss
|
||||||
=raw t '.calendar_in',
|
=raw t '.calendar_in',
|
||||||
rss: link_to('RSS', events_url(:rss,
|
rss: link_to('RSS', events_url(:rss,
|
||||||
@ -56,7 +58,7 @@
|
|||||||
ical: link_to('iCal', events_url(:rss,
|
ical: link_to('iCal', events_url(:rss,
|
||||||
tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region]))
|
tag: params[:tag], format: :ics, tag: params[:tag], region: params[:region]))
|
||||||
|
|
||||||
%a#banner(href='http://april.org/campagne')
|
%a#banner(href='http://april.org/campagne')
|
||||||
-#%img(src='http://www.april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april.png'
|
-#%img(src='http://www.april.org/campagne/images/priorite-logiciel-libre-je-soutiens-april.png'
|
||||||
width='580' height='76' alt='Priorité au Logiciel Libre! Je soutiens l\'April.')
|
width='580' height='76' alt='Priorité au Logiciel Libre! Je soutiens l\'April.')
|
||||||
= image_tag 'priorite-logiciel-libre-je-soutiens-april_2_m.png',
|
= image_tag 'priorite-logiciel-libre-je-soutiens-april_2_m.png',
|
||||||
|
Loading…
Reference in New Issue
Block a user