Global configuration of package CWSThe new version of package (2.0+) uses a single configuration file (config.php), with a global section for common settings and others dedicated for each script/app. Before the first run some global settings must be configured, these are:
CronThe data into the SPMS are updated continuously so the scripts must be executed periodically with the fresh data. To simplify this task the package provide the script cron.php that reads the configuration file and executes each script at the right time. ex. crontab -e * * * * * root /var/www/html/cws_ipac_xyz/cron.php The global setting cron_enabled enable or disable this script, instead the setting cron (one for each script) tell when. Some examples: cron => '*:*' // the script is run each minute cron => '*:00' // the script is run each hour at minute 00 cron => '10:00' // the script is run at 10:00 cron => false // the script is not run spms_importerThis script is important to be run as first because it creates some files for the other scripts, if you update the cron values don't change this order. |