madeon (madeon) wrote in changelog,
madeon
madeon
changelog

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

Committer: sbelyaev
LJSUP-13445: Home page optimization: stage 2
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2012-08-29 13:09:53 UTC (rev 22770)
+++ trunk/cgi-bin/LJ/User.pm	2012-08-29 13:17:59 UTC (rev 22771)
@@ -2008,14 +2008,14 @@
             # table and uses only one memcache key to cache that
 
             my $memkey = $handler->memcache_key($u);
-            LJ::MemCache::delete([ $u->userid, $memkey ]);
+            LJ::MemCacheProxy::delete([ $u->userid, $memkey ]);
         } elsif ( $memcache_policy eq 'blob' ) {
             # the handler uses one memcache key for each prop,
             # so let's delete them all
 
             foreach my $propname (@$propnames_handled) {
                 my $memkey = $handler->memcache_key( $u, $propname );
-                LJ::MemCache::delete([ $u->userid, $memkey ]);
+                LJ::MemCacheProxy::delete([ $u->userid, $memkey ]);
             }
         }
     }
@@ -6771,7 +6771,7 @@
             # table and uses only one memcache key to cache that
 
             my $memkey = $handler->memcache_key($u);
-            if ( my $packed = LJ::MemCache::get([ $u->userid, $memkey ]) ) {
+            if ( my $packed = LJ::MemCacheProxy::get([ $u->userid, $memkey ]) ) {
                 my $propmap
                     = LJ::User::PropStorage->unpack_from_memcache($packed);
 
@@ -6789,8 +6789,8 @@
                                        { 'use_master' => $use_master } );
 
             my $packed = LJ::User::PropStorage->pack_for_memcache($propmap);
-            LJ::MemCache::set( [$u->userid, $memkey],
-                               $packed, $memc_expire );
+            LJ::MemCacheProxy::set( [$u->userid, $memkey],
+                                    $packed, $memc_expire );
 
             $extend_user_object->($propmap);
         } elsif ( $memcache_policy eq 'blob' ) {
@@ -6895,7 +6895,7 @@
 
         if ( $memcache_policy eq 'lite' ) {
             my %memkeys;
-            my $propmaps = LJ::MemCache::get_multi(map {
+            my $propmaps = LJ::MemCacheProxy::get_multi(map {
                 [
                     ($_ => ($memkeys{$_} = $handler->memcache_key($users->{$_})))
                 ]

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