Planning to run a macro every hour

Do I need to plan a macro in Umbraco or a .ascx file to run every hour?

thank

+5
source share
2 answers

There are two ways to run scheduled tasks in Umbraco:

TaskScheduler provides a good interface for setting tasks in the Umbraco backend. You can schedule tasks to be completed at specific times, and you can set repetition. It can also send emails when performing tasks.

Adding tasks to umbracoSettings.configmight be easier. The following 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>
+7

, ascx ( cshtml, ) , . , -, WCF, setInterval/setTimeout javascript .. @DouglasLudlow (+1) .

Umbraco Macro Service Umbraco .

Umbraco ( ), Macro umbraco javascript .

. http://our.umbraco.org/projects/backoffice-extensions/macroservice .

0

All Articles