madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12715: LJSUP-13822: Widgets do not change langu...

Committer: sbelyaev
LJSUP-13822: Widgets do not change language
U   trunk/cgi-bin/LJ/Widget/UpdatesForUser.pm
Modified: trunk/cgi-bin/LJ/Widget/UpdatesForUser.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/UpdatesForUser.pm	2012-10-02 11:16:16 UTC (rev 12714)
+++ trunk/cgi-bin/LJ/Widget/UpdatesForUser.pm	2012-10-02 11:22:12 UTC (rev 12715)
@@ -19,7 +19,8 @@
 
     my $remote = LJ::get_remote();
 
-    my $cached_key = "update_for_users:" . $remote->userid;
+    my $lncode = LJ::Lang::get_effective_lang();
+    my $cached_key = "update_for_users:" . $remote->useridi . ":$lncode";
     my $cache_data = LJ::MemCache::get($cached_key);
     if ($cache_data) {
         return $cache_data;

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