Is there anyway to schedule a macro in Umbraco or a .ascx file to run every hour?
thanks
There are two ways to run scheduled tasks in Umbraco:
umbracoSettings.config
. See Scheduled Tasks from the Umbraco Wiki.TaskScheduler provides a nice interface to setup tasks in the Umbraco backend. You can schedule tasks to run at specific times and you can set the recurrence. It also can send emails when tasks are executed.
Adding tasks to umbracoSettings.config
may be simpler. Below is an example:
<scheduledTasks>
<!-- add tasks that should be called with an interval (seconds) -->
<task log="true" alias="test60" interval="60" url="http://localhost/umbraco/test.aspx"/>
</scheduledTasks>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With