14 lines
312 B
PHP
14 lines
312 B
PHP
<?php
|
|
|
|
use Pheanstalk\Pheanstalk;
|
|
|
|
require __DIR__.'/common.php';
|
|
|
|
$connection = new Pheanstalk(BEANSTALKD_HOST);
|
|
|
|
foreach (Model\Feed\get_ids() as $feed_id) {
|
|
$connection
|
|
->useTube(BEANSTALKD_QUEUE)
|
|
->put($feed_id, Pheanstalk::DEFAULT_PRIORITY, Pheanstalk::DEFAULT_DELAY, BEANSTALKD_TTL);
|
|
}
|