mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
This commit is contained in:
parent
ef1777603a
commit
206d849c72
2 changed files with 7 additions and 4 deletions
|
@ -67,7 +67,7 @@ include $global['systemRootPath'] . 'plugin/Scheduler/watchDog.php';
|
|||
|
||||
Scheduler::sendEmails();
|
||||
|
||||
echo ("Scheduler executeEveryMinute".PHP_EOL);
|
||||
//echo ("Scheduler executeEveryMinute".PHP_EOL);
|
||||
AVideoPlugin::executeEveryMinute();
|
||||
|
||||
// This script runs every minute
|
||||
|
@ -77,18 +77,18 @@ $current_day = date('j'); // Get the current day of the month (1-31)
|
|||
|
||||
// Block to execute every hour
|
||||
if ($current_minute == '00') {
|
||||
echo ("Scheduler executeEveryHour".PHP_EOL);
|
||||
//echo ("Scheduler executeEveryHour".PHP_EOL);
|
||||
AVideoPlugin::executeEveryHour();
|
||||
}
|
||||
|
||||
// Block to execute every day (at midnight)
|
||||
if ($current_hour == '0' && $current_minute == '00') {
|
||||
echo ("Scheduler executeEveryDay".PHP_EOL);
|
||||
//echo ("Scheduler executeEveryDay".PHP_EOL);
|
||||
AVideoPlugin::executeEveryDay();
|
||||
}
|
||||
|
||||
// Block to execute every month (at midnight)
|
||||
if ($current_day == '1' && $current_hour == '0' && $current_minute == '00') {
|
||||
echo ("Scheduler executeEveryMonth".PHP_EOL);
|
||||
//echo ("Scheduler executeEveryMonth".PHP_EOL);
|
||||
AVideoPlugin::executeEveryMonth();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue