vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r20001: LJSUP-9757: Remove entries older than 2 ...

Committer: vsukhanov
LJSUP-9757: Remove entries older than 2 weeks from friendstimes
U   trunk/bin/maint/clean_caches.pl
Modified: trunk/bin/maint/clean_caches.pl
===================================================================
--- trunk/bin/maint/clean_caches.pl	2011-09-08 09:09:23 UTC (rev 20000)
+++ trunk/bin/maint/clean_caches.pl	2011-09-08 09:09:50 UTC (rev 20001)
@@ -187,7 +187,7 @@
     print "-I- Cleaning friendstimes.\n";
     foreach my $c (@LJ::CLUSTERS) {
         my $dbcm = LJ::get_cluster_master($c);
-        $dbcm->do("DELETE FROM friendstimes WHERE added < UNIX_TIMESTAMP() - 86400*7 LIMIT 100000");
+        $dbcm->do("DELETE FROM friendstimes WHERE added < UNIX_TIMESTAMP() - 86400*14 LIMIT 100000");
     }
     LJ::disconnect_dbs();
 

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