|
|
|
|
AdminPanel TechNotes
Help
Products
|
|
TechNote Admin Panel Configuration File: Tasks | Product: Admin Panel |
The file tasks.mem makes it possible to automate some tasks.
To automate tasks:
- Create and configure the file panel/config/tasks/tasks.mem
- Run the script in the page every 10 minutes. Two methods are possible:| |
- Include/run the PHP script panel/engine/tasks/execTasks.php.
- Include the file panel/engine/tasks/index.php in an IFRAME. |
tasks.mem
The file must be created in can be created in panel/config/tasks/.
Create the sub-folder tasks if necessary.
Possibles keys:
| |
alertsToHistory
Expired alerts in the specified alerts feeds are sent in the history file.
Set the list of alerts IDs you want to be processed.
channelsToHistory
Expired news in the specified RSS feeds are sent in the history file.
Set the list of alerts IDs you want to be processed.
Parameter relativeTime
Expressed in hours.
With this parameter you can adjust the time between the clients and the server if they are not in the same timezone.
Example:
|
Sample Code
channelsToHistory {
MY_RSSFEED
}
alertsToHistory {
MY_ALERTS_A=relativeTime:-6
MY_ALERTS_B=relativeTime:-6
} |
|
|
|