Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[fotobilder] r1459: LJSV-1846 (Scrapbook doesn't rename some...

Committer: ailyin
LJSV-1846 (Scrapbook doesn't rename sometimes)
U   trunk/lib/FB/User.pm
Modified: trunk/lib/FB/User.pm
===================================================================
--- trunk/lib/FB/User.pm	2011-12-21 12:34:26 UTC (rev 1458)
+++ trunk/lib/FB/User.pm	2011-12-29 06:51:17 UTC (rev 1459)
@@ -1010,7 +1010,7 @@
     return $uid if $uid;
 
     # check memcache
-    my $memkey = "loc_uid_n:$domainid:$user";
+    my $memkey = "loc_uid_n2:$domainid:$user";
     $uid = FB::MemCache::get($memkey);
     return $uid if $uid;
 
@@ -1018,7 +1018,7 @@
     my $set = sub {
         my $id = $_[0];
         $FB::REQ_CACHE{"uidlookup:$domainid:$user"} = $id;
-        FB::MemCache::set($memkey => $id);
+        FB::MemCache::set( $memkey => $id, 3600 );
         return $id;
     };
 

Tags: ailyin, andy, fotobilder, pm
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