Search the Community
Showing results for tags 'minute'.
-
Hello blestars Long time I post in here eheh My request is simple, and me personally and one client that Im working with, asks for CORE implementation, to be able to set, also, Cron Jobs to run in "Interval", by 1 (one) minute and not by the default minimum 5 minutes, that I think is to hight to check for exemple new Incoming Emails on IMAP/POP Support Manager (Pro also) Here is the solution to implement on CORE, only 2 lines of code change in 2 files Edit: [your-blesta-instalation]/app/controllers/admin_company_automation.php Find on line: 160 $intervals = array(5=>5, 10=>10, 15=>15, 30=>30, 45=>45); Change to: $intervals = array(1=>1, 5=>5, 10=>10, 15=>15, 30=>30, 45=>45); Edit: [your-blesta-instalation]/app/controllers/cron.php Find on lines 2087/2088: // The last run date rounded down to the nearest 5 minute interval $last_run_date = date("c", floor($this->Date->toTime($last_run->start_date)/(60*5))*(60*5)); Change to: // The last run date rounded down to the nearest 1 minute interval $last_run_date = date("c", floor($this->Date->toTime($last_run->start_date)/(60))*(60)); Finally, change your server/host blesta CRON task from something like: */5 * * * * /usr/bin/php /home/[path-to-your-blesta-instalation]/index.php cron Change it to: * * * * * /usr/bin/php /home/[path-to-your-blesta-instalation]/index.php cron Thanks in advance Keep it up Regards, PV