NopCommerce - OutPutCaching无法在Full / Parent页面上运行

时间:2015-04-14 13:30:22

标签: asp.net-mvc nopcommerce

如果我在任何儿童行动[OutputCache(Duration = 600)]上应用[ChildActionOnly],那就可以了。但是如果在主动作上应用缓存。 每次刷新页面时它都会继续操作。

我创建了一个新的控制器,它继承了MVC“BaseController”,而不是继承Nopcommerce“BasePublicController”。 但仍然没有运气。

public class CacheController : BaseController
    {
        [ OutputCache(Duration = 3600)]
        public ActionResult testCache( )
        {
            return View();
        }
    }

现在,如果我创建一个全新的独立MVC项目缓存工作正常。

0 个答案:

没有答案