aboutsummaryrefslogtreecommitdiff
path: root/cli/_update-or-create-user.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-02-29 18:19:09 +0100
committerGravatar GitHub <noreply@github.com> 2020-02-29 18:19:09 +0100
commit0f94402b7e8b7e25ee605f830b7c7becbe78ba8b (patch)
tree473adf4e21e8cbe2f6e36eae69dca3ed8b39a424 /cli/_update-or-create-user.php
parente9f879b411ac6af9d102702fb52c8deff161b0e6 (diff)
Better performance with yield (#2588)
* Better performance with yield Largely decrease the time to first byte, and reduced memory consumtion. Before, we used to make several copies in memory of the whole list of articles before sending them to the client. Now streamed as they are processed. * Travis
Diffstat (limited to 'cli/_update-or-create-user.php')
-rw-r--r--cli/_update-or-create-user.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/cli/_update-or-create-user.php b/cli/_update-or-create-user.php
index 3217a07ea..0da9963f0 100644
--- a/cli/_update-or-create-user.php
+++ b/cli/_update-or-create-user.php
@@ -11,7 +11,6 @@ $params = array(
'feed_min_articles_default:',
'feed_ttl_default:',
'since_hours_posts_per_rss:',
- 'min_posts_per_rss:',
'max_posts_per_rss:',
);
@@ -27,7 +26,7 @@ if (!validateOptions($argv, $params) || empty($options['user'])) {
" --language en --email user@example.net --token 'longRandomString'" .
($isUpdate ? '' : '--no_default_feeds') .
" --purge_after_months 3 --feed_min_articles_default 50 --feed_ttl_default 3600" .
- " --since_hours_posts_per_rss 168 --min_posts_per_rss 2 --max_posts_per_rss 400 )");
+ " --since_hours_posts_per_rss 168 --max_posts_per_rss 400 )");
}
function strParam($name) {
@@ -48,7 +47,6 @@ $values = array(
'keep_history_default' => intParam('feed_min_articles_default'), //TODO: Update with new mechanism
'ttl_default' => intParam('feed_ttl_default'),
'since_hours_posts_per_rss' => intParam('since_hours_posts_per_rss'),
- 'min_posts_per_rss' => intParam('min_posts_per_rss'),
'max_posts_per_rss' => intParam('max_posts_per_rss'),
);