madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r23120: LJSUP-13883: Journal pages optimizaiton ...

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-10-11 18:33:30 UTC (rev 23119)
+++ trunk/cgi-bin/LJ/User.pm	2012-10-11 18:42:46 UTC (rev 23120)
@@ -7432,7 +7432,7 @@
 {
     my @keys = @_;
     my @ret;
-    my $users = LJ::MemCache::get_multi(@keys) || {};
+    my $users = LJ::MemCacheProxy::get_multi(@keys) || {};
     while (my ($key, $ar) = each %$users) {
         my $row = LJ::MemCache::array_to_hash("user", $ar, $key)
             or next;
@@ -7449,8 +7449,8 @@
     my $expire = time() + 1800;
     my $ar = LJ::MemCache::hash_to_array("user", $u);
     return unless $ar;
-    LJ::MemCache::set([$u->{'userid'}, "userid:$u->{'userid'}"], $ar, $expire);
-    LJ::MemCache::set("uidof:$u->{user}", $u->{userid});
+    LJ::MemCacheProxy::set([$u->{'userid'}, "userid:$u->{'userid'}"], $ar, $expire);
+    LJ::MemCacheProxy::set("uidof:$u->{user}", $u->{userid});
 }
 
 # <LJFUNC>

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