Skip to content

Commit

Permalink
expire cache after commit, for transaction use.
Browse files Browse the repository at this point in the history
  • Loading branch information
huangzg committed Nov 29, 2012
1 parent 432945c commit 096ec07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/second_level_cache/active_record/base.rb
Expand Up @@ -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
Expand Down

0 comments on commit 096ec07

Please sign in to comment.