开发者

Spark View Engine and cache

开发者 https://www.devze.com 2023-03-02 23:26 出处:网络
I have the following action in the controller: [Cache(HttpCacheability.Public, Duration = 86400, VaryByParams = \"*\", VaryByCustom =开发者_开发知识库 \"url\")]

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

精彩评论

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