开发者

Enable all caches except asp net output cache

开发者 https://www.devze.com 2022-12-24 12:35 出处:网络
I have different urls that points to the same code www.url1.com www.url2.com I need to use the cache, but if the asp net cache is enabled when someone access to www.url1.com next person accessing ww

I have different urls that points to the same code

www.url1.com www.url2.com

I need to use the cache, but if the asp net cache is enabled when someone access to www.url1.com next person accessing www.url2.com could get the previously cached data (www.url1.com)

I need to have ALL caches acti开发者_开发问答vated except this one.


You can disable ASP.Net output caching for the entire application by putting it in your web.config file.

<configuration>
    <system.web>
        <caching>
            <outputCache enableOutputCache="false">
            </outputCache>
        </caching>
    </system.web>
</configuration>

But unless you're actually putting anything in the cache in the first place, you don't have anything to worry about.

0

精彩评论

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