Skip to content
Browse files

expire cache after commit, for transaction use.

  • Loading branch information...
1 parent 432945c commit 096ec07fa300811e5b0798c1e8a18094adbf7220 huangzg committed Nov 29, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/second_level_cache/active_record/base.rb
View
1 lib/second_level_cache/active_record/base.rb
@@ -7,6 +7,7 @@ module Base
included do
after_destroy :expire_second_level_cache
after_save :expire_second_level_cache
+ after_commit :expire_second_level_cache
class << self
alias_method_chain :update_counters, :cache

0 comments on commit 096ec07

Please sign in to comment.
Something went wrong with that request. Please try again.