Closed Bug 329283 Opened 18 years ago Closed 18 years ago

Necko should be agnostic about where Cache dir lives

Categories

(Core :: Networking: Cache, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: hwaara, Unassigned)

References

()

Details

In the process of fixing bug 323780 (Make Camino's profile dir path be customizable), we need to be able to keep the Cache inside the profile directory.

However, Necko has some code that, if it doesn't find the cache dir at first, will try to remove the in-profile cache as a way of migrating old Firefox users (where Firefox kept the cache in the profile dir).

This code can't live in necko if embeddors such as Camino decides to have the cache in the profile. Thus we need to remove this code, or move it to some Firefox-specific location.

See http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/netwerk/cache/src/nsCacheService.cpp#342
I'm not sure I understand... necko still keeps the cache in the profile unless you also specify a "local profile" directory... are you doing that?
(In reply to comment #1)
> I'm not sure I understand... necko still keeps the cache in the profile unless
> you also specify a "local profile" directory... are you doing that?

So after looking some more, I think I understand the logic now; the code is there to enforce precedence of a specified "local profile" to a "shared profile".

Since our directory provider doesn't care about any of these two properties, I *think* this code should never get executed in our case...
Why aren't the current directory service keys sufficient for you to configure the cache the way you like?  There doesn't seem to be anything to fix here.
(In reply to comment #3)
> Why aren't the current directory service keys sufficient for you to configure
> the cache the way you like?  There doesn't seem to be anything to fix here.

They are sufficient, we were just worried that necko might obliterate the cache if we put it in the profile dir.

Thanks for helping clear the confusion. :-)
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.