Committer: sbelyaev
LJSUP-13445: Home page optimization: stage 2U trunk/cgi-bin/LJ/MemCacheProxy.pm
Modified: trunk/cgi-bin/LJ/MemCacheProxy.pm =================================================================== --- trunk/cgi-bin/LJ/MemCacheProxy.pm 2012-08-29 11:29:02 UTC (rev 22766) +++ trunk/cgi-bin/LJ/MemCacheProxy.pm 2012-08-29 11:59:36 UTC (rev 22767) @@ -32,8 +32,11 @@ my $local_ret; my @keys_request = (); foreach my $key (@keys) { - if (exists $singletons{$key}) { - $local_ret->{$key} = $singletons{$key}; + my $key_normal = ref $key eq 'ARRAY' ? $key->[1] + : $key; + + if (exists $singletons{$key_normal}) { + $local_ret->{$key_normal} = $singletons{$key_normal}; } else { push @keys_request, $key; }