common-data-caching 1.0.1 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed03b2c51fe4da07a48b9ae224b6b82401cde2d9ca6a14a53aa8581ae8e18a16
4
- data.tar.gz: 513909d9ed690ecb27c6dac09cdf14e5dc127daadc07d7db1e6fc18d79c675e6
3
+ metadata.gz: 8d993bdf8ab0f1503544c70a601758a8d99e8374263105c7e4449fb45547cbab
4
+ data.tar.gz: 3af757debe589422361cb8a724ff159d2e70f2c616f7970edef17fd11134f19b
5
5
  SHA512:
6
- metadata.gz: 5960b26d0d5de7849b3d3e5374ca936f686ea9ef71df7a526aaa53d806ecb809c869b1036eae91672e45bf14e1d7fe06598aee93cb21738f79a417aad91e25da
7
- data.tar.gz: 2173bc3a6bd9e4a68b78ce0e9575a5a816fb0e341071343e2c6e5e9386ca91bc37d6b63f80744f71b4cfd2e456388faf0c4e21bbb463e89a4bfa0b71c56b4d96
6
+ metadata.gz: 1c41bf2807d4e37c47bd44881f0ae4a4548dff6a878a3541457a13c7f25fe06e89e06b4aef851f7cc7328f75bf23b3c775dc723173ea0cb19c48a5f9fb0f1841
7
+ data.tar.gz: acac86a8bcccb1162a30cc01ba15509dd0de9ec55d2249a1547eff923512613617757293d5fc1ad622730c7a5bf4d7703c336eaa87594caa604eb40eda616ebc
@@ -12,10 +12,6 @@ module CommonDataCaching
12
12
  def update_common_data_cache
13
13
  # обновить коллекцию кеша всей сущности
14
14
  self.class.update_common_data_cache
15
-
16
- # удалить отдельно кешированную запись
17
- key = self.class.common_cache_key(id)
18
- Rails.cache.delete(key)
19
15
  end
20
16
 
21
17
  def update_common_data_cache_versions
@@ -5,8 +5,8 @@ module CommonDataCaching
5
5
  true
6
6
  end
7
7
 
8
- def common_data_cache_key(id = nil)
9
- ['common-data-caching', to_s, id].compact.join('_')
8
+ def common_data_cache_key
9
+ "common-data-caching_#{to_s}"
10
10
  end
11
11
 
12
12
  def common_data_cache_collection
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: common-data-caching
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Павел Бабин