1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 01:39:24 +02:00
Daniel Neto 2023-08-18 09:56:01 -03:00
parent ef1777603a
commit 206d849c72
2 changed files with 7 additions and 4 deletions

View file

@ -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();
}