Scheduler (CRON)

Description

The option is mainly intended for clearing outdated logs.

Over the entire period of use, the log tables fill up and take up quite a lot of space.

The scheduler in the background will clear the logs for the specified time.


System tasks

It is not recommended to change system tasks.

Updating exchange rates - system rates and exchanger rates. The launch takes place in the background and step by step checks all sources for receiving rates and exchange rates in the exchanger. Can work longer than the specified time. For a more stable update of rates, we recommend setting up CRON server for exchange rates

Updating the monitoring file - updating the export file of courses for monitoring

Expiration of applications at the exchange office - checks exchange applications and cancels all expired ones

Payments on deposits - Investments plugin. Crediting deposit funds to the user's balance and sending a personal message about payment.

Reserve request - sending letters reserve request.

Competitor courses - receiving and updating competitor rates

Cleaning sessions - clearing expired sessions

Online status - the scheduler will check the status of users (online or offline) and change the status to offline if the user is no longer on the site

MD5 checksum verification - verification of MD5 checksums.

Clearing expired cache

Clearing expired IP blocks

Clearing temporary files

Clear 404 error log older than 30 days

Cleaning logs older than 30 days

Clearing action logs in the admin panel older than 30 days

Clearing read messages older than 90 days

Clearing logs of funds movement (balance) older than 90 days

Clearing logs of SMS balance charges older than 90 days

Clearing logs of sent SMS older than 90 days

Clearing logs of sent messages older than 90 days

Clearing rate change logs older than 10 days - clears old rate change records.

Generation of fake exchange notifications - re-generation of successfully completed exchanges.

Cleaning outdated notifications - remove outdated notifications.

Clearing API request logs older than 30 days

Clearing API balance logs older than 30 days

Clear all transactions older than a year

Clearing unsuccessful transactions older than 30 days

Clearing accounts (invoices) older than 90 days

Repeated requests to Callback from your API

Auto-trading - purchase

Auto-trading - sale

Auto-trading - clearing logs older than 30 days

Auto-trading - clearing trades older than 30 days


Adding a task

To add any task, you need knowledge of SQL queries.

All task files in the api/cron directory.

If you do not have the necessary knowledge, do not try to add anything.


CRON server for exchange rates

If you need to update courses more consistently and more often, you can set up a CRON server.

In the control panel of your server, go to the section: CronTab (Task Scheduler) (example for Beget.com hosting).

Add a task:

wget -O /dev/null -q --no-check-certificate --max-redirect=50 'https://domain.com/ajax.php?moduleid=25&action=cronrates' domain.com replace with your domain.

The screenshot shows an example of running a task every 10 minutes.

If a test run of cron returns the error: Script operation log - Executed with an error, do not pay attention. This is due to a redirect to update the file for monitoring

Last updated