mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:50:10 +00:00
Replace cron/worker "last" config entries with key-value entries
This commit is contained in:
parent
10f8631cd9
commit
6b3265742a
6 changed files with 25 additions and 17 deletions
|
@ -93,11 +93,11 @@ class Daemon
|
|||
}
|
||||
|
||||
// Check every minute if the daemon is running
|
||||
if (DI::config()->get('system', 'last_daemon_check', 0) + 60 > time()) {
|
||||
if ((DI::keyValue()->get('last_daemon_check') ?? 0) + 60 > time()) {
|
||||
return;
|
||||
}
|
||||
|
||||
DI::config()->set('system', 'last_daemon_check', time());
|
||||
DI::keyValue()->set('last_daemon_check', time());
|
||||
|
||||
$pidfile = DI::config()->get('system', 'pidfile');
|
||||
if (empty($pidfile)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue