mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-07 14:47:26 +02:00
make digest sending a hourly cron job
This commit is contained in:
parent
44b5b33f3d
commit
36f60b51d7
@ -285,9 +285,6 @@ class RSSUtils {
|
|||||||
self::housekeeping_user($owner_uid);
|
self::housekeeping_user($owner_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send feed digests by email if needed.
|
|
||||||
Digest::send_headlines_digests();
|
|
||||||
|
|
||||||
return $nf;
|
return $nf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1775,6 +1772,14 @@ class RSSUtils {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
PluginHost::getInstance()->add_scheduled_task('send_headlines_digests', '@hourly',
|
||||||
|
function() {
|
||||||
|
Digest::send_headlines_digests();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
static function housekeeping_common(): void {
|
static function housekeeping_common(): void {
|
||||||
|
Loading…
Reference in New Issue
Block a user