- Updates cron API URL

- Removes cron daemon counter
- Generates/saves cron daemon token as soon as its executed
This commit is contained in:
Vlad
2016-07-06 19:45:13 -04:00
parent bd814baf28
commit ab33a9c352
2 changed files with 4 additions and 7 deletions

View File

@ -50,10 +50,7 @@ class CronHelper {
'timeout' => $timeout,
'user-agent' => 'MailPoet (www.mailpoet.com) Cron'
);
$result = wp_remote_get(
self::getSiteUrl() . $url,
$args
);
$result = wp_remote_get($url, $args);
return wp_remote_retrieve_body($result);
}