فهرست منبع

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')),
             )
         );