When the cronjobs are set for the first time, only identifiers ("###< $identifier" and "###> $identifier") are added to crontab, not the list of jobs. This is because of the PHP union operator (+). For indexed arrays + operator completely ignores the second array and returns the first array as it is. Using array_merge or spread operator should be the right way to contact local jobs with remote ones.
When the cronjobs are set for the first time, only identifiers (
"###< $identifier"
and"###> $identifier"
) are added to crontab, not the list of jobs. This is because of the PHP union operator (+
). For indexed arrays+
operator completely ignores the second array and returns the first array as it is. Usingarray_merge
orspread operator
should be the right way to contact local jobs with remote ones.