madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22767: LJSUP-13445: Home page optimization: sta...

Committer: sbelyaev
LJSUP-13445: Home page optimization: stage 2
U   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;
         }

Tags: livejournal, madeon, pm, sbelyaev
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments