diff --git a/app/sweepers/friendship_sweeper.rb b/app/sweepers/friendship_sweeper.rb index 4ccc683..8dddab2 100644 --- a/app/sweepers/friendship_sweeper.rb +++ b/app/sweepers/friendship_sweeper.rb @@ -19,7 +19,7 @@ protected def expire_cache(profile) [profile.friends_cache_key, profile.manage_friends_cache_key].each { |ck| cache_key = ck.gsub(/(.)-\d.*$/, '\1') - expire_fragment(/#{cache_key}/) + expire_timeout_fragment(/#{cache_key}/) } blocks = profile.blocks.select{|b| b.kind_of?(FriendsBlock)} diff --git a/app/views/profile/communities.rhtml b/app/views/profile/communities.rhtml index 94375fa..f522682 100644 --- a/app/views/profile/communities.rhtml +++ b/app/views/profile/communities.rhtml @@ -3,7 +3,7 @@

<%= _("%s's communities") % profile.name %>

-<% cache(profile.communities_cache_key(params)) do %> +<% cache_timeout(profile.communities_cache_key(params), 4.hour.from_now) do %>