common-data-caching 1.0.0 → 1.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/common_data_caching/callbacks.rb +0 -4
- data/lib/common_data_caching/class_methods.rb +2 -2
- data/lib/common_data_caching/rake_tasks.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d993bdf8ab0f1503544c70a601758a8d99e8374263105c7e4449fb45547cbab
|
4
|
+
data.tar.gz: 3af757debe589422361cb8a724ff159d2e70f2c616f7970edef17fd11134f19b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c41bf2807d4e37c47bd44881f0ae4a4548dff6a878a3541457a13c7f25fe06e89e06b4aef851f7cc7328f75bf23b3c775dc723173ea0cb19c48a5f9fb0f1841
|
7
|
+
data.tar.gz: acac86a8bcccb1162a30cc01ba15509dd0de9ec55d2249a1547eff923512613617757293d5fc1ad622730c7a5bf4d7703c336eaa87594caa604eb40eda616ebc
|
data/README.md
CHANGED
@@ -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
|
@@ -14,10 +14,10 @@ namespace :common_data_caching do
|
|
14
14
|
next unless model.common_data_caching?
|
15
15
|
|
16
16
|
# обновление кеша
|
17
|
-
model.
|
17
|
+
model.update_common_data_cache
|
18
18
|
|
19
19
|
# обновление версий кеша
|
20
|
-
model.
|
20
|
+
model.update_common_data_cache_versions
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: common-data-caching
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Павел Бабин
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|