From 8cd377d255c3d5b21326c929fea83838c9986a76 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 21 Mar 2010 11:33:58 +0000 Subject: [PATCH 1/1] Restrict the fragment caching of the reverse geocode result to only cover that lookup and not anything else as the geocode result is only cached once for all languages. --- app/views/diary_entry/_location.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/diary_entry/_location.html.erb b/app/views/diary_entry/_location.html.erb index ec8ea462a..dfac3a198 100644 --- a/app/views/diary_entry/_location.html.erb +++ b/app/views/diary_entry/_location.html.erb @@ -1,11 +1,11 @@ -<% cache(:controller => 'diary_entry', :action => 'view', :display_name => location.user.display_name, :id => location.id, :part => "location") do %> <%= t 'diary_entry.location.location' %> +<% cache(:controller => 'diary_entry', :action => 'view', :display_name => location.user.display_name, :id => location.id, :part => "location") do %> <%= describe_location location.latitude, location.longitude, 14, location.language_code %> +<% end %> (<%=link_to t('diary_entry.location.view'), :controller => 'site', :action => 'index', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %> / <%=link_to t('diary_entry.location.edit'), :controller => 'site', :action => 'edit', :lat => location.latitude, :lon => location.longitude, :zoom => 14 %>) -<% end %> -- 2.43.2