473,386 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How Can store output cache in hard disk?

ary
I try to create a weblog host site!

in this case i can't use cache for every page because that cause to be
my Server ram full of caching page.

but if I can save cache in hard disk my problem solved?

can help me?

thanks.

Dec 17 '06 #1
3 6433
Hi,
If it is ASP.NET 2.0 then you should not have much probelm.There is now new
feature in ASP.NET 2.0 whereby you can save page output cache even to hard
disk.This is what one documentation has to say on Disk Otput Cache:
Caching to Disk

ASP.NET 2.0 has the ability to save cached responses in memory and to disk.
The benefit of storing a cached item on disk is that even if it’s removed
from memory to ensure performance or because the web application was
restarted or the application domain was recycled, the cached item remains
available (although it’s slightly more expensive to retrieve). Of course,
cached items are removed both from memory and disk when they expire.

Essentially, disk caching allows ASP.NET to cache a much larger amount of
data. Disk caching is enabled by default, and every web application is
allocated 2 MB of space. However, you can configure the maximum size to use
for disk caching and the location where cache information is stored using the
web.config file. Here’s an example that sets a maximum 20 MB disk cache:

<configuration>

<system.web>

<caching>

<outputCache>

<diskCache maxSizePerApp="20" />

</outputCache>

</caching>

</system.web>

....

</configuration>

You can also disable disk caching altogether by supplying the enabled
attribute and setting it to false or by changing the path where cached
information is stored using the path attribute.

Finally, you can choose to create pages that opt out of disk caching
altogether using the Disk- Cacheable attribute in the OutputCache directive
(or the diskCacheable attribute in the cache profile that’s defined in the
web.config file).

<%@ OutputCache Duration="20" VaryByParam="None"

DiskCacheable="False" %>
Thanks and Regards,
Manish Bafna.
MCP and MCTS

"ary" wrote:
I try to create a weblog host site!

in this case i can't use cache for every page because that cause to be
my Server ram full of caching page.

but if I can save cache in hard disk my problem solved?

can help me?

thanks.

Dec 17 '06 #2
If it is ASP.NET 2.0 then you should not have much probelm.There is
now new feature in ASP.NET 2.0 whereby you can save page output
cache even to hard disk.This is what one documentation has to say
on Disk Otput Cache:
Disk caching was removed in the RTM.

http://blogs.msdn.com/bgold/archive/...23/455246.aspx

-Brock
http://staff.develop.com/ballen
Dec 17 '06 #3
Hi,
Beta releases of ASP.NET v2.0 included a disk output cache feature that did
not make it into the final product. The code for disk output cache in the
below URL module is not based on the feature from ASP.NET beta releases, it
just fills in the gap by implementing a similar functionality.
http://blogs.msdn.com/dmitryr/archiv...13/503411.aspx

Thanks and regards,
Manish Bafna.
MCP and MCTS.

"ary" wrote:
I try to create a weblog host site!

in this case i can't use cache for every page because that cause to be
my Server ram full of caching page.

but if I can save cache in hard disk my problem solved?

can help me?

thanks.

Dec 18 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: cover | last post by:
The question is, we have two options to store images, either in a Database (MySQL, Postgres, ...) like blob data, or in the hard disk the file and the path in database. Which option is better?...
2
by: Romy Sreedharan | last post by:
Hello, I am wondering whether there is a mechanism to clear the Hard Disk Cache using C#? This is for O.S Windows XP regards romy
2
by: Kikoz | last post by:
Hi all. I keep my ViewState in server's cache. Works fine except when user leaves the page opened for a long time (2 hours or so). Then if he/she tries to post it back the server throws an...
3
by: Alex Shirley | last post by:
Hi Can you help me? I want to store a file of any description or format (from a hard disk) into memory in VB.NET (using ASP.NET). Then I want to use this datastructure in memory (containing...
3
by: Sally Sally | last post by:
I have a very basic question on the two parameters shared buffers and effective cache size. I have read articles on what each is about etc. But I still think I don't quite grasp what these settings...
6
by: Alan Wang | last post by:
Hi All, My application puts standard output from command line(using process.start()) into a file on the hard disk then reads the info from that file after command has finished. The problem is...
3
by: noridotjabi | last post by:
Say I'm writting a program. In this program for some reason I need to store data somewere were I will be able to access it again. I don't want to store it in a file because then it could be...
18
by: siddharthkhare | last post by:
Hi All, what is the diference between these two cache control header. no-cache and no-store. I have read the w3.org explanation. So lets say I am using only no-cache ....my understanding is...
3
by: M.-A. Lemburg | last post by:
On 2008-08-07 20:41, Laszlo Nagy wrote: 1 It also very fast at dumping/loading lists, tuples, dictionaries, floats, etc. -- Marc-Andre Lemburg eGenix.com
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.