Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leopard and Cache.db files




On 22/04/2008, at 11:07, Darin Adler wrote:

On Apr 22, 2008, at 10:21 AM, Eric Long wrote:

Why is WebKit storing Cache.db files in /private/var/folders?

Sorry to be pedantic: WebKit doesn't do disk caching at all. It's done by CFNetwork.


By default, CFNetwork stores caches in ~/Library/Caches, not in /var/ folders. And I'm sure if you look there you'll see them there.

The files in /var/folders seem to be caused by something different; on my computer I see what seem to be hard links to the CFNetwork caches in there, and many other files. Perhaps these have something to do with Time Machine?

The location of the CFNetwork disk cache was changed to inside /var/ folders with the Mac OS X 10.5.2 update. My understanding is that the rationale for the change is that because ~/Library/Caches lives inside the users home directory, it is likely to live on a network file system if the user has their home directory on a network volume. A location under /var/folders is much more likely to reside on the local disk which is a more suitable location for the relatively large and frequently accessed cache used by CFNetwork inside Safari. That is to say it's about performance, not security through obscurity.


Kind regards,

Mark Rowe

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >Leopard and Cache.db files (From: Eric Long <email@hidden>)
 >Re: Leopard and Cache.db files (From: Darin Adler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.