We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b1c9443 + d09d0a9 commit 1fe448eCopy full SHA for 1fe448e
1 file changed
lib/Data/ObjectDriver/Driver/BaseCache.pm
@@ -126,17 +126,6 @@ sub lookup_multi {
126
my %id2key = map { $_ => $driver->cache_key($class, $_) } grep { defined } @$ids;
127
my $got = $driver->get_multi_from_cache(values %id2key);
128
129
- ## If we got back all of the objects from the cache, return immediately.
130
- if (scalar keys %$got == @$ids) {
131
- my @objs;
132
- for my $id (@$ids) {
133
- my $obj = $driver->inflate($class, $got->{ $id2key{$id} });
134
- $obj->{__cached}{ref $driver} = 1;
135
- push @objs, $obj;
136
- }
137
- return \@objs;
138
139
-
140
## Otherwise, look through the list of IDs to see what we're missing,
141
## and fall back to the backend to look up those objects.
142
my($i, @got, @need, %need2got) = (0);
0 commit comments