Committer: anazarov
LJSUP-11593: Change MemCache key expiration time for selfpromo current entry.U trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm =================================================================== --- trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-03-21 09:09:49 UTC (rev 11611) +++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm 2012-03-21 09:14:47 UTC (rev 11612) @@ -768,7 +768,7 @@ { 'require_active' => 1, 'return_rows' => 1 } ); unless ($rows && @$rows) { - LJ::MemCache::set( $class->memcache_key, 0, 30 ); + LJ::MemCache::set( $class->memcache_key, 0, 1800 ); return; } @@ -777,7 +777,7 @@ } my $row = $rows->[0]; - LJ::MemCache::set( $class->memcache_key, $row, 30 ); + LJ::MemCache::set( $class->memcache_key, $row, 1800 ); return LJ::Pay::SelfPromo::Promo->new($row); }