Skip to content

Commit 1fe448e

Browse files
authored
Merge pull request #29 from sewi-cpan/master
Solve issue #28 caused by Cache::Memcached::get_multi
2 parents b1c9443 + d09d0a9 commit 1fe448e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/Data/ObjectDriver/Driver/BaseCache.pm

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,17 +126,6 @@ sub lookup_multi {
126126
my %id2key = map { $_ => $driver->cache_key($class, $_) } grep { defined } @$ids;
127127
my $got = $driver->get_multi_from_cache(values %id2key);
128128

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-
140129
## Otherwise, look through the list of IDs to see what we're missing,
141130
## and fall back to the backend to look up those objects.
142131
my($i, @got, @need, %need2got) = (0);

0 commit comments

Comments
 (0)