Essais de cache pour accélérer encore la page principale
This commit is contained in:
parent
d18eb7aa18
commit
8901183d12
|
@ -1,3 +1,7 @@
|
|||
ActiveAdmin.register Region do
|
||||
permit_params :name
|
||||
|
||||
after_update do
|
||||
expire_fragment 'regions'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
display: none
|
||||
position: absolute
|
||||
list-style: none
|
||||
margin-top: -1.3em
|
||||
margin-top: -7em
|
||||
background-color: white
|
||||
@include box-shadow(1px 1px 4px gray)
|
||||
@include border-bottom-left-radius(0.4em)
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
-# Seems necessary, for the time being, to ensure calendar is changing days correctly
|
||||
- Time.zone = 'Paris'
|
||||
|
||||
- cache 'regions' do
|
||||
= render '/regions/selector'
|
||||
|
||||
- cache do
|
||||
= render '/lugs/search'
|
||||
|
||||
- if params[:year]
|
||||
|
@ -47,7 +46,6 @@
|
|||
%strong.city= event.city.gsub '-', ' '
|
||||
= event.title
|
||||
|
||||
- cache do
|
||||
.formats
|
||||
%em.fa.fa-rss
|
||||
=raw t '.calendar_in',
|
||||
|
|
Loading…
Reference in New Issue