System : Cronjobs
Cronjobs are useful for creating periodic and recurring tasks
Yanar avatar
Written by Yanar
Updated over a week ago

System : Cronjobs

Cron is a time-based job scheduler in Unix-like computer operating systems. It typically automates system maintenance or administration, allowing certain commands or scripts to run at fixed times, dates, or intervals. These "postponed" commands or jobs are commonly referred to as Cronjobs.

Cron can run simple commands, shell scripts, and programs written in languages such as PHP. If a task can be completed on the command line or in a script, you can automate it with the task scheduler. For example, you can run news import by cron, or send out notifications to the site users, without having to manually launch the process.

In the PG Dating Pro software, cronjob settings are located in Services > Customize your service > System > Cronjobs (/admin/cronjob).

Cronjob management lets you configure certain commands or scripts to run at fixed times, dates, or intervals.

Different tasks are assigned by the system to run periodically. You can activate/deactivate them, run manually, view execution logs, or edit periods.

We recommend that you run the scripts no more often than once in every 5 minutes. For better server performance, do not run many tasks in quick succession.

Warning! Do not try to modify the scripts periods unless you have to and you know how to maintain them! The resulting issues may break the software functioning easily!

Typical configuration that is required to be set at the server:

* /5 *โ€‹ * * * /usr/local/bin/php -f /home/public_html/cl_index.php /cronjob/

where /usr/local/bin/php is a path to PHP interpreter,

and /home/public_html/cl_index.php is a path to cl_index.php file located in the root folder of the installed product.

Did this answer your question?