madeon (madeon) wrote in changelog,
madeon
madeon
changelog

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

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2012-10-10 14:41:05 UTC (rev 23098)
+++ trunk/cgi-bin/LJ/Session.pm	2012-10-10 14:49:20 UTC (rev 23099)
@@ -43,7 +43,7 @@
 
     # try memory
     my $memkey = _memkey($u, $sessid);
-    my $sess = LJ::MemCache::get($memkey);
+    my $sess = LJ::MemCacheProxy::get($memkey);
     return $sess if $sess;
 
     # try master
@@ -53,7 +53,7 @@
         or return undef;
 
     bless $sess;
-    LJ::MemCache::set($memkey, $sess);
+    LJ::MemCacheProxy::set($memkey, $sess);
     return $sess;
 }
 
@@ -216,7 +216,7 @@
         $sess->{$k} = $changes{$k};
     }
 
-    LJ::MemCache::delete($sess->_memkey);
+    LJ::MemCacheProxy::delete($sess->_memkey);
     return 1;
 
 }
@@ -863,7 +863,7 @@
     }
     foreach my $id (@sessids) {
         $id += 0;
-        LJ::MemCache::delete(_memkey($u, $id));
+        LJ::MemCacheProxy::delete(_memkey($u, $id));
     }
 
     return 1;

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