Running scheduled jobs using wp-cli doesn't work, whereas CiviCRM's cli.php does work.
I'm running CiviCRM 4.6.8 on Wordpress.
When I try to execude scheduled jobs using wp-cli:
sudo -u www-data /usr/local/bin/wp --user=my_wp_login --url=https://www.mysite.pl --path=/home/www/wordpress civicrm api job.execute auth=0
I get the following result, although the mailings are not sent (remain in Scheduled state).
[is_error] => 0
[version] => 3
[count] => 1
[values] => 1
The same goes for running
wp civicrm process-mail-queue
However, using old cli.php I can run the jobs.
usr/bin/php5 /home/www/wordpress/wp-content/plugins/civicrm/civicrm/bin/cli.php -s www.mysite.pl -u cron -p passord -e Job -a execute
What am I doing wrong?