瀏覽代碼

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