static_blocks 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -85,7 +85,11 @@ module StaticBlocks
85
85
  (?, ?, ?, ?, ?)", static_block.id, row['locale'], row['content'], row['created_at'], row['updated_at']]
86
86
  raw_sql = sanitize_sql_array(sql_array)
87
87
  end
88
+
88
89
  ActiveRecord::Base.connection.execute(raw_sql)
90
+
91
+ # manually clear the cache for that snippet
92
+ Rails.cache.delete("snippet::#{row['locale']}::#{row['title']}")
89
93
  end
90
94
  end
91
95
  end
@@ -1,3 +1,3 @@
1
1
  module StaticBlocks
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
Binary file