madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22907: LJSUP-13673: memcached usage optimizatio...

Committer: sbelyaev
LJSUP-13673: memcached usage optimization for language variables
U   trunk/cgi-bin/LJ/Lang.pm
Modified: trunk/cgi-bin/LJ/Lang.pm
===================================================================
--- trunk/cgi-bin/LJ/Lang.pm	2012-09-17 12:17:03 UTC (rev 22906)
+++ trunk/cgi-bin/LJ/Lang.pm	2012-09-17 12:25:04 UTC (rev 22907)
@@ -725,7 +725,7 @@
     my %memkeys;
     foreach my $code ( keys %lc_codes ) {
         my @code_array = split //, $code;
-        my $cache_key = $code_array[1] eq '.' ? "ml.${lang}.${dmid}.${code}"
+        my $cache_key = $code_array[1] ne '.' ? "ml.${lang}.${dmid}.${code}"
                                               : "ml.${lang}.${dmid}${code}";
 
         my $text      = undef;

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