mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] changelog2009-04-21 04:31 am

[dw-free] Use proper memcache key format. is not a valid integer.

[commit: http://hg.dwscoalition.org/dw-free/rev/1b3b4d28d511]

Use proper memcache key format. is not a valid integer.

Patch by [staff profile] mark.

Files modified:
  • cgi-bin/LJ/Userpic.pm
--------------------------------------------------------------------------------
diff -r 4a2e067002f7 -r 1b3b4d28d511 cgi-bin/LJ/Userpic.pm
--- a/cgi-bin/LJ/Userpic.pm	Mon Apr 20 18:25:50 2009 +0000
+++ b/cgi-bin/LJ/Userpic.pm	Tue Apr 21 04:31:32 2009 +0000
@@ -525,10 +525,9 @@ sub get_cache {
     return \@ret;
 }
 
+# $class->memkey( $u )
 sub memkey {
-    my $class = shift;
-    my $u = shift;
-    return [ $u, "userpic2:" . $u->id ];
+    return [ $_[1]->id, "userpic2:" . $_[1]->id ];
 }
 
 sub set_cache {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org