Преглед изворни кода

Tweak updating schedule a bit

Jordi Boggiano пре 6 година
родитељ
комит
516a697316
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      src/Packagist/WebBundle/Entity/PackageRepository.php

+ 5 - 5
src/Packagist/WebBundle/Entity/PackageRepository.php

@@ -134,12 +134,12 @@ class PackageRepository extends EntityRepository
             )
             ORDER BY p.id ASC',
             array(
-                // crawl new packages once an hour for the first day so that dummy packages get deleted ASAP
-                'recent' => date('Y-m-d H:i:s', strtotime('-1hour')),
+                // crawl new packages every 3h for the first day so that dummy packages get deleted ASAP
+                'recent' => date('Y-m-d H:i:s', strtotime('-3hour')),
                 'yesterday' => date('Y-m-d H:i:s', strtotime('-1day')),
-                // crawl packages without auto-update once a week
-                'crawled' => date('Y-m-d H:i:s', strtotime('-1week')),
-                // crawl auto-updated packages once a month just in case
+                // crawl packages without auto-update once every 2week
+                'crawled' => date('Y-m-d H:i:s', strtotime('-2week')),
+                // crawl all packages including auto-updated once a month just in case
                 'autocrawled' => date('Y-m-d H:i:s', strtotime('-1month')),
             )
         );