[Git][noosfero/noosfero][master] 2 commits: Expire LocationBlock cache on profile's location change
Bráulio Bhavamitra
gitlab at gitlab.com
Tue Jun 16 14:23:50 BRT 2015
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
e172d197 by Braulio Bhavamitra at 2014-07-21T11:37:24Z
Expire LocationBlock cache on profile's location change
(ActionItem3217)
- - - - -
a7adb70b by Bráulio Bhavamitra at 2015-06-16T17:23:51Z
Merge branch 'ai3217' into 'master'
Expire LocationBlock cache on profile's location change
http://noosfero.org/Development/ActionItem3217
See merge request !259
- - - - -
1 changed file:
- app/controllers/my_profile/maps_controller.rb
Changes:
=====================================
app/controllers/my_profile/maps_controller.rb
=====================================
--- a/app/controllers/my_profile/maps_controller.rb
+++ b/app/controllers/my_profile/maps_controller.rb
@@ -16,6 +16,7 @@ class MapsController < MyProfileController
Profile.transaction do
if profile.update_attributes!(params[:profile_data])
+ BlockSweeper.expire_blocks profile.blocks.select{ |b| b.class == LocationBlock }
session[:notice] = _('Address was updated successfully!')
redirect_to :action => 'edit_location'
end
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/b3d0fde26aad2a8cb80eec707b70a12b02b561ed...a7adb70b1d4c84f9226d4c4d4f25d0aab45c99ea
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150616/98d975bb/attachment.html>
More information about the Noosfero-dev
mailing list