Commit 26c2e2de4981cf0a0fe96a6c8975c78c7e7abd83
Committed by
Victor Costa
1 parent
543d62bd
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Expire LocationBlock cache on profile's location change
(ActionItem3217)
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/controllers/my_profile/maps_controller.rb
... | ... | @@ -16,6 +16,7 @@ class MapsController < MyProfileController |
16 | 16 | |
17 | 17 | Profile.transaction do |
18 | 18 | if profile.update_attributes!(params[:profile_data]) |
19 | + BlockSweeper.expire_blocks profile.blocks.select{ |b| b.class == LocationBlock } | |
19 | 20 | session[:notice] = _('Address was updated successfully!') |
20 | 21 | redirect_to :action => 'edit_location' |
21 | 22 | end | ... | ... |