Alexander Nazarov (nfokz) wrote in changelog,
Alexander Nazarov
nfokz
changelog

[ljcom] r11612: LJSUP-11593: Change MemCache key expirat...

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);
     }
 

Tags: anazarov, ljcom, nfokz, 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