identity_cache 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -2
- data/lib/identity_cache/cached/attribute_by_multi.rb +1 -1
- data/lib/identity_cache/version.rb +1 -1
- 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: acfed214f7a98554a2a32f066e1de02da09c69f2ccd46cd5cfbc2b343ecebe30
|
4
|
+
data.tar.gz: 428ce88a990db844ea32dab391b85cf65046af1a5f4462b2596752637ab94ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: febcac0077ff5e20d9e6c42dd472c147dca5baa5e37a86db7f3c2839ac61020cb770bb781ecef98d9d8c7cf47b347b3f7810210c5f1e620fc4f052ba5cf6496f
|
7
|
+
data.tar.gz: 4f630185bd4c0b5cf372de27aed7e40d484c94b35ae6f271d89d45e02adf7fa9648ad5151714e9646d01f559f05f2cdd989af6edb6536633f72640133f6b4de9
|
data/CHANGELOG.md
CHANGED
@@ -2,38 +2,51 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 1.4.1
|
6
|
+
|
7
|
+
### Fixes
|
8
|
+
|
9
|
+
- Fix `fetch_multi_by` bug for queries having a single field with distinct values. (#536)
|
10
|
+
|
5
11
|
## 1.4.0
|
6
12
|
|
7
13
|
### Features
|
14
|
+
|
8
15
|
- Add `fetch_multi_by` support for composite-key indexes. (#534)
|
9
16
|
|
10
17
|
## 1.3.1
|
11
18
|
|
12
19
|
### Fixes
|
20
|
+
|
13
21
|
- Remove N+1 queries from embedded associations when using `fetch` while `should_use_cache` is false. (#531)
|
14
22
|
|
15
23
|
## 1.3.0
|
16
24
|
|
17
25
|
### Features
|
26
|
+
|
18
27
|
- Return meaningful value from `expire_cache` indicating whenever it succeeded or failed in the process. (#523)
|
19
28
|
|
20
29
|
### Fixes
|
30
|
+
|
21
31
|
- Expire parents cache when when calling `expire_cache`. (#523)
|
22
32
|
- Avoid creating too many shapes on Ruby 3.2+. (#526)
|
23
33
|
|
24
34
|
## 1.2.0
|
25
35
|
|
26
36
|
### Fixes
|
37
|
+
|
27
38
|
- Fix mem_cache_store adapter with pool_size (#489)
|
28
39
|
- Fix dalli deprecation warning about requiring 'dalli/cas/client' (#511)
|
29
40
|
- Make transitionary method IdentityCache.with_fetch_read_only_records thread-safe (#503)
|
30
41
|
|
31
42
|
### Features
|
43
|
+
|
32
44
|
- Add support for fill lock with lock wait to avoid thundering herd problem (#373)
|
33
45
|
|
34
46
|
## 1.1.0
|
35
47
|
|
36
48
|
### Fixes
|
49
|
+
|
37
50
|
- Fix double debug logging of cache hits and misses (#474)
|
38
51
|
- Fix a Rails 6.1 deprecation warning for Rails 7.0 compatibility (#482)
|
39
52
|
- Recursively install parent expiry hooks when expiring parent caches (#476)
|
@@ -45,10 +58,12 @@
|
|
45
58
|
- Fix fetch `has_many` embedded association on record after adding to it (#449)
|
46
59
|
|
47
60
|
### Features
|
61
|
+
|
48
62
|
- Support multiple databases and transactional tests in `IdentityCache.should_use_cache?` (#293)
|
49
63
|
- Add support for the default `MemCacheStore` from `ActiveSupport` (#465)
|
50
64
|
|
51
65
|
### Breaking Changes
|
66
|
+
|
52
67
|
- Drop ruby 2.4 support, since it is no longer supported upstream (#468)
|
53
68
|
|
54
69
|
## 1.0.1
|
@@ -120,7 +135,7 @@
|
|
120
135
|
- Remove support for 3.2
|
121
136
|
- Fix N+1 from fetching embedded ids on a cache miss
|
122
137
|
- Raise when trying to cache a through association. Previously it wouldn't be invalidated properly.
|
123
|
-
- Raise if a class method is called on a scope.
|
138
|
+
- Raise if a class method is called on a scope. Previously the scope was ignored.
|
124
139
|
- Raise if a class method is called on a subclass of one that included IdentityCache. This never worked properly.
|
125
140
|
- Fix cache_belongs_to on polymorphic assocations.
|
126
141
|
- Fetching a cache_belongs_to association no longer loads the belongs_to association
|
@@ -181,7 +196,6 @@
|
|
181
196
|
|
182
197
|
## 0.0.5
|
183
198
|
|
184
|
-
|
185
199
|
## 0.0.4
|
186
200
|
|
187
201
|
- Fix: only marshal attributes, embedded associations and normalized association IDs
|
@@ -84,7 +84,7 @@ module IdentityCache
|
|
84
84
|
# This results in a single "WHERE field IN (values)" statement being
|
85
85
|
# produced from a single query.
|
86
86
|
field_idx = other_field_indexes.first
|
87
|
-
field_name = key_fields[
|
87
|
+
field_name = key_fields[field_idx]
|
88
88
|
field_values = keys.map { |key| key[field_idx] }
|
89
89
|
(common_query || unsorted_model).where(field_name => field_values)
|
90
90
|
else
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: identity_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Camilo Lopez
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2023-04-
|
17
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: activerecord
|