开发者

Spark View Engine and cache

I have the following action in the controller:

[Cache(HttpCacheability.Public, Duration = 86400, VaryByParams = "*", VaryByCustom =开发者_开发知识库 "url")]
public virtual void SearchForm(TModel form)
{
    ...
}

in this case view is cached, but when i change data through admin panel, view get from cache.

Is there a way to reset cache when i changed data?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜