an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Blog > OpenSource Edition > How do category counters get updated automatica...
How do category counters get updated automatically?

In Global.asax, the following code starts the orderpipeline when application starts.

    void Application_Start(object sender, EventArgs e) {
        OrderPipelineController.Start();
    }

It would load DataRefresh task defined in your web.config.

 

    <taskConfiguration defaultProvider="">

        <providers>

            <add name="DataRefresh" type="DotShoppingCart.OpenSource.OrderPipeline.DataRefreshTaskProvider, DotShoppingCart.OpenSource.OrderPipeline" />

        </providers>

    </taskConfiguration>

 

 

DataRefresh would update your category  counter every 2 hours.

 

    protected override void RunTask(string host, IConfigurationSource cfgSrc) {

        Category.UpdateProductCount(host);

    }

 

Recent Comments
Travis said ...
I just bought DSC Suite V4.5 and it is more solid then ever. I hope I am #1 buyer of this ...
komal said ...
 exellent platform for creating ecommerce websites
komal said ...
 this is a very useful software for building ecommerce website  
lukezy said ...
No, still working on it.
seldi said ...
V4.2 release is canceled?