Permalink
Browse files

expire cache after commit, for transaction use.

  • Loading branch information...
huangzg
huangzg committed Nov 29, 2012
1 parent 432945c commit 096ec07fa300811e5b0798c1e8a18094adbf7220
Showing with 1 addition and 0 deletions.
  1. +1 −0 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.