madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12504: LJSUP-13301: Main page optimization

Committer: sbelyaev
LJSUP-13301: Main page optimization
U   trunk/cgi-bin/LJ/Nav.pm
Modified: trunk/cgi-bin/LJ/Nav.pm
===================================================================
--- trunk/cgi-bin/LJ/Nav.pm	2012-08-21 10:27:14 UTC (rev 12503)
+++ trunk/cgi-bin/LJ/Nav.pm	2012-08-21 10:34:04 UTC (rev 12504)
@@ -25,10 +25,9 @@
     my $memcache_key;
     if ($remote) {
         my $journalid = $remote->userid; 
-        my $bl = LJ::Lang::get_lang($remote->prop('browselang')) || 
-                       $LJ::DEFAULT_LANG;
+        my $lang = $remote->prop('browselang') || $LJ::DEFAULT_LANG;
 
-        $memcache_key = "navbar:$scheme:$journalid:$bl" . $LJ::CURRENT_VERSION;
+        $memcache_key = "navbar:$scheme:$journalid:$lang" . $LJ::CURRENT_VERSION;
    
         my $cached = LJ::MemCache::get($memcache_key);
         if ($cached) {

Tags: ljcom, 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