StackOverflower
StackOverflower

Reputation: 5781

Enable all caches except asp net output cache

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 activated except this one.

Upvotes: 1

Views: 441

Answers (1)

womp
womp

Reputation: 116987

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.

Upvotes: 2

Related Questions