Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r17744: Bugfix (Non-numeric value for memcache k...

Committer: gariev
Bugfix (Non-numeric value for memcache key)
U   trunk/cgi-bin/LJ/Userpic.pm
Modified: trunk/cgi-bin/LJ/Userpic.pm
===================================================================
--- trunk/cgi-bin/LJ/Userpic.pm	2010-11-23 02:27:20 UTC (rev 17743)
+++ trunk/cgi-bin/LJ/Userpic.pm	2010-11-23 03:04:15 UTC (rev 17744)
@@ -446,7 +446,8 @@
 sub memkey {
     my $class = shift;
     my $u = shift;
-    return [ $u, "userpic2:" . $u->id ];
+    my $userid = $u->id;
+    return [ $userid, "userpic2:$userid" ];
 }
 
 sub set_cache {

Tags: gariev, livejournal, 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