afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-08 02:39 pm

[dw-free] memcached values for syndication times never expire

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

http://bugs.dwscoalition.org/show_bug.cgi?id=1288

Expire after 30 minutes.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/LJ/User.pm
--------------------------------------------------------------------------------
diff -r bc6a36a9d18d -r eaf79dad5beb cgi-bin/LJ/User.pm
--- a/cgi-bin/LJ/User.pm	Mon Jun 08 14:05:33 2009 +0000
+++ b/cgi-bin/LJ/User.pm	Mon Jun 08 14:39:13 2009 +0000
@@ -4943,7 +4943,7 @@ sub get_syndicated {
         my $dbr = LJ::get_db_reader();
         return unless $dbr;
         $synd = $dbr->selectrow_hashref("SELECT * FROM syndicated WHERE userid=$u->{'userid'}");
-        LJ::MemCache::set($memkey, $synd) if $synd;
+        LJ::MemCache::set($memkey, $synd, 60 * 30) if $synd;
     }
 
     return $synd;
--------------------------------------------------------------------------------

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