Activating 'hidden' visibility flag.
[platal.git] / bin / cron / compliance.php
index 16f29fe..7d2cfef 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php5 -q
 <?php
 /***************************************************************************
-*  Copyright (C) 2003-2013 Polytechnique.org                              *
+*  Copyright (C) 2003-2014 Polytechnique.org                              *
 *  http://opensource.polytechnique.org/                                   *
 *                                                                         *
 *  This program is free software; you can redistribute it and/or modify   *
@@ -55,7 +55,7 @@ function discardExpiredSessions($userPerms, $retentionPeriod, $minimalBacklog) {
            WHERE  state = {?} AND is_admin = {?}",
         $state, $isAdmin);
 
-    $batchSize = 500;
+    $batchSize = 100;
     $nbBatches = 0;
     $affectedRows = 0;