Skip to content

Commit d09d0a9

Browse files
committed
Solved: Cache::Memcached rarly returns keys different to requested ones
1 parent 90097e9 commit d09d0a9

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)