caching : Java Glossary

go to home page C words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 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 (all) ©1996-2009 Roedy Green, Canadian Mind Products
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 speed things up even further, so that last modified dates and jar sizes don’t need to be checked from the server, you can put jar version numbers in your <PARAM NAME="cache_version" tags. The cacher compares these with the version numbers in its cache to see if it needs to refresh the jar. The jars themselves have no such embedded version numbers.

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:

Books

book cover recommend book⇒Web Caching
 paperback
ISBN13:978-1-56592-536-6impressioncounter
publisher:O’Reilly recommended
published:2001-06
by:Duane Wessels
The author is the creater of Squid an open-source web caching program. It also tackles such things as why web site owners deliberately foil caching. The author has a refreshingly simple and direct way of writing.
UK flag abe books.co.uk abe books.ca Canadian flag
UK flag amazon.co.uk. amazon.ca. Canadian flag
German flag abe books.de chapters.indigo.ca. Canadian flag
German flag amazon.de. abe books.com American flag
French flag abe books.fr amazon.com. American flag
French flag amazon.fr. barnes and noble.com American flag
Italian flag abe books.it powells.com American flag
Spanish flag iberlibro.com sony e-books American flag
Australian flag abe books anz download o’reilly safari American flag

Learning More

Sun’s JDK Technote Guide on Applet caching : available:

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/caching.html J:\mindprod\jgloss\caching.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.105]
You are visitor number 13,435.