fix for cache clear on page part submit

This commit is contained in:
Harry Bomrah 2015-04-10 16:33:47 +08:00
parent 15fec35e3f
commit 1fadefa510
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ class SubPart
belongs_to :page_part
belongs_to :mobile_page_part
after_save :clear_cache
after_destroy :clear_cache
# after_save :clear_cache
# after_destroy :clear_cache
def clear_cache
Rails.cache.delete_matched( /#{self.id.to_s}/ )