Χρονικός προγραμματισμός δημοσίευσης και αποδημοσίευσης άρθρων και module με cron jobs.
Since Elxis 4.2 Elxis has a cron jobs system to run scheduled tasks. In Elxis 4.2 this system was limited and supported only the publish of an article on a specific day. No time was supported. Cron jobs in Elxis 4.2 ran once per day. Since version 4.3 Elxis has an advanced cron jobs system allowing you to schedule the publish or the un-publish of articles and modules and even to set up your own custom automated tasks. The interval time between cron jobs run decreased from 24 hours to 10 minutes.
You can set an article to be published, or un-published, automatically on a specific datetime. You can set a module to be published, or un-published, automatically on a specific datetime. You can write your own, custom, php code to be executed periodically every 10 minutes.
Cron jobs are by default disabled and you should keep it like that except if you want to schedule the publish/unpublish of modules or articles. You can enable Cron jobs in Elxis general configuration page. There are 2 enablement options for the cron jobs, Elxis and External. The first option uses site visitors to trigger the system. This option is not too accurate but it is perfect for the majority of sites and tasks. It has a 10 minutes time interval and works good on live sites with guests and robots visiting the web site. This option has also the advantage that it does not rely on external software. The second option allows you to trigger cron jobs by an external source like your server's crontab. After clicking Apply a special URL will be displayed below to use it at your server to set up cron jobs.
http://www.example.com/?cronkey=XXXXXX
In Elxis configuration, in articles list and in modules list pages there are links or buttons to force run cron jobs immediately.
In Elxis configuration, in article edit and module edit pages you can see when cron jobs last ran in a human friendly format.
Create a folder in Elxis repository named cronjobs and place there any PHP file you want to add in Elxis cron tab system. These files will be triggered by Elxis every 10 minutes. As these files get included by Elxis core you can use all the Elxis libraries, the database connection and everything else as you would have in an Elxis extension. You can for example create a script to take automatically database backups once per day, or send emails to users every Monday, or what ever you like.
Κατασκευάστε μηχανές που επεκτείνουν την αναζήτηση του elxis οπουδήποτε μπορείτε να φανταστείτε