Java Glossary : caching

CMP home Java glossary home Menu no menu Last updated 2004-06-28 by Roedy Green ©1996-2004 Canadian Mind Products

Java definitions: 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

You are here : home : Java Glossary : C words : caching.

caching
Caching is a general term of keeping a small subset of a larger set handy for rapid access. SQL databases keep the most popular parts of the disk-based database in RAM. DNS lookup servers keep locally copies of the names it uses most frequently. Operating systems keep copies of the most commonly used parts of the hard disk in a RAM cache.

Starting with JDK 1.3 the Java Plugin offers Applet caching. This means Applets need be downloaded only when new versions have been uploaded to the server. Otherwise they are executed from a local cache. There are special plug-in commands to control which Applets are sticky and which are downloaded fresh each time.

To clear the in-RAM ClassLoader Applet cache in Internet Explorer, click Tools | Java Console | x .

To clear the in-RAM ClassLoader Applet cache in Opera, click Tools | Advanced | Java Console | x .

You can configure the cache size in a browser. Don't be crazy generous. If you choose something like 9000 MB you will eventually fill up your entire hard disk with junk you never use and your machine will grind to a halt. To make matters worse, IE cleverly hides the cached files from view that are causing all the trouble. Especially on Windows 98, to add insult to injury, having too big a cache will slow you down too. 20 to 100 MB is probably sufficient before you reap no additional benefit.

To manually clear the Applet/Jar cache, delete files in:


CMP logo
CMP_home
home
Canadian Mind Products CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[24.87.56.253]
Your IP:[80.134.30.163]
You are visitor number 1000.
Please send errors, omissions and suggestions
to improve this page to Roedy Green.
You can get a fresh copy of this page from: or possibly from your local J: drive mirror:
http://mindprod.com/jgloss/caching.html J:\mindprod\jgloss\caching.html