|
@@ -134,12 +134,12 @@ class PackageRepository extends EntityRepository
|
|
)
|
|
)
|
|
ORDER BY p.id ASC',
|
|
ORDER BY p.id ASC',
|
|
array(
|
|
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')),
|
|
'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')),
|
|
'autocrawled' => date('Y-m-d H:i:s', strtotime('-1month')),
|
|
)
|
|
)
|
|
);
|
|
);
|