Setting the HttpRuntime.cache maximum size --- please help

  • Thread starter Thread starter almurph
  • Start date Start date
A

almurph

Hi,


I'm calling the following from inside a DLL framework:

HttpRuntime.Cache.EffectivePrivateBytesLimit;

I get a massive number returned. I want to be able to set it to a
lower value.


This DLL is fed into a Web Application. I am using the following tag
in the Web.config of the web application:


<caching>
<cache disableMemoryCollection="false"
disableExpiration="false"
privateBytesLimit="1000"
percentagePhysicalMemoryUsedLimit="50"
privateBytesPollTime="00:00:00" />
</caching>

But to be honest I cant make it talk to the HttpRuntime.Cache. I
think I have to do something to the IIS 5.1 memory pool or something
to the vlaue that I want.

Can anyone help me here. I would greatly appreciate any comments/
suggestions/user expereinces that you may liek to share.

Thanking you,
Al.
 
Back
Top