function leistungsschutzrecht_cron(App $a, $b)
{
- $last = DI::config()->get('leistungsschutzrecht', 'last_poll');
+ $last = DI::keyValue()->get('leistungsschutzrecht_last_poll');
if ($last) {
$next = $last + 86400;
}
}
leistungsschutzrecht_fetchsites();
- DI::config()->set('leistungsschutzrecht', 'last_poll', time());
+ DI::keyValue()->set('leistungsschutzrecht_last_poll', time());
}
return;
}
- $last = DI::config()->get('pumpio', 'last_poll');
+ $last = DI::keyValue()->get('pumpio_last_poll');
$poll_interval = intval(DI::config()->get('pumpio', 'poll_interval', PUMPIO_DEFAULT_POLL_INTERVAL));
Logger::notice('pumpio: cron_end');
- DI::config()->set('pumpio', 'last_poll', time());
+ DI::keyValue()->set('pumpio_last_poll', time());
}
function pumpio_cron(App $a, $b)
function twitter_cron(App $a)
{
- $last = DI::config()->get('twitter', 'last_poll');
+ $last = DI::keyValue()->get('twitter_last_poll');
$poll_interval = intval(DI::config()->get('twitter', 'poll_interval'));
if (!$poll_interval) {
Logger::notice('twitter: cron_end');
- DI::config()->set('twitter', 'last_poll', time());
+ DI::keyValue()->set('twitter_last_poll', time());
}
function twitter_expire(App $a)