Scheduled Tasks
There are certain operations for which it is recommended to start execution
not upon a browser query to a web server, but via using some script launched
periodically by the server's operational system.
ActiveStat features a few of such operations, namely:
- deletion of huge volumes of data, which usually requires decent
amounts of time making it impossible to be performed immediately
upon a browser request;
- marking of visits (recommended after a visit is over);
- generation of reports (by marks, by referrals, by 404-queries).
All of the above tasks are implemented via two scheduled tasks -
'daily' and 'cleanup' - executed by the jobs.php script
that is launched by the system scheduler (see
Server Part Installation, item 8).
The 'Daily' task is responsible for marking visits and generation of
reports and is launched once every 24 hours at the time set in the
cfg/cron.cfg.php file.
The 'Cleanup' task performs scheduled deletion of data based on parameters
specified in 'Administration Interface / DB Maintenance / Delete Info'.
Finally, execution of all scheduled tasks is managed by the
cfg/cron.cfg.php configuration file.
|