madeon (madeon) wrote in changelog,
madeon
madeon
changelog

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

Committer: sbelyaev
LJSUP-13883: Journal pages optimizaiton : stage 1
U   trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
Modified: trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm
===================================================================
--- trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2012-10-10 14:35:46 UTC (rev 23097)
+++ trunk/cgi-bin/LJ/RelationService/MysqlAPI.pm	2012-10-10 14:41:05 UTC (rev 23098)
@@ -456,7 +456,7 @@
 
     my $memkey = $class->_friend_friendof_uids_memkey($u, $mode);
 
-    if (my $pack = LJ::MemCache::get($memkey)) {
+    if (my $pack = LJ::MemCacheProxy::get($memkey)) {
         my ($slimit, @uids) = unpack("N*", $pack);
         # value in memcache is good if stored limit (from last time)
         # is >= the limit currently being requested.  we just may
@@ -811,7 +811,7 @@
         $mask = $dbw->selectrow_array("SELECT groupmask FROM friends ".
                                       "WHERE userid=? AND friendid=?",
                                       undef, $jid, $fid);
-        LJ::MemCache::set($memkey, $mask+0, time()+60*15);
+        LJ::MemCacheProxy::set($memkey, $mask+0, time()+60*15);
     }
 
     return $mask+0;  # force it to a numeric scalar

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