Closed Bug 188956 Opened 22 years ago Closed 21 years ago

Clean up Cache pref panel.

Categories

(Core :: Networking: Cache, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.4beta

People

(Reporter: skasinathan, Assigned: skasinathan)

References

Details

Attachments

(2 files, 2 obsolete files)

There are few things that needs to be cleaned/removed from Cache pref panel.

Darin: What are the items that needs to be cleaned? Couple of them you mentioned
to me are, (correct me if i'm wrong)
1. Removing Memory Cache from the panel.
2. Replace KB with MB.

Thanks!
No longer blocks: 166648
1- probably, although if folks object then we should at least have only one
"clear cache" button.

2- yes.

3- also, try to widen the cache directory entry box if possible.
Attached image test screenshot
This attachment is just the initial work...I'll talk to Patrice about her
opinion. Adding pre-fetching pref to Cache panel is still an issue :(
how about change the text to "Cache", instead of "Disk Cache"

    Cache:  50000kb        [ Clear Cache ]

what do people think?


I also agree that prefetching option makes this panel to crowded.  I like the
screen shot in bug 166648 better, under the http networking panel.
yeah, let's eliminate the word "Disk" throughout.

as for the prefetching pref, the HTTP Networking panel makes sense assuming
prefetching only applies to HTTP content which is currently the case, but...
dougt mentioned wanting to possibly prefetch other things like FTP directory
listings.  prefetching doesn't inheritantly have anything to do with HTTP.
If memory cache is removed from panel, how can it be limited, so Mozilla doesn´t
take all available ram for cache?
iirc I saw some people complaining about Opera7 taking all of ram, but I´m not
sure about this.
Hermann:

mozilla has a memory cache limit of 4MB.  it is not meant to be modified. 
except.. in the future, mozilla will likely have a memory cache size that is
more proportional to the amount of available RAM.  though don't expect it to
ever be very large.  advanced users can still adjust the memory cache size
manually by editing prefs.js.

suresh: isn't this bug fixed now that bug 166648 has been fixed?
darin: There is one more task to be fixed in this bug - change KB to MB. 
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4alpha
Attached patch patch to convert KB to MB. (obsolete) — Splinter Review
Attachment #113537 - Flags: superreview?(darin)
Attachment #113537 - Flags: review?(gordon)
I don't think we can change the semantics of this pref from kilobytes to
megabytes without migrating existing pref settings.  If a user has changed this
setting, and new browsers interpret it as Mb rather than kb, that might be bad.
gordon/darin: any thoughts on how to migrate the existing user setting from KB
to MB? 

thanks!
Comment on attachment 113537 [details] [diff] [review]
patch to convert KB to MB.

hmm... the actual meaning of the pref strings in all.js should not change. 
only the UI should change.  if you change the meaning of a pref string then you
will have to add code to migrate existing users profiles.
Attachment #113537 - Flags: superreview?(darin)
Attachment #113537 - Flags: superreview-
Attachment #113537 - Flags: review?(gordon)
suresh: sorry, missed the last two comments.  just change the UI, not the
preferences backend.  i know this complicates the prefs XUL code a bit, but it
is far superior to any profile migration headache.
Attached patch updated patch (obsolete) — Splinter Review
1. This patch just converts KB to MB on loading the cache panel and converts
back to KB while saving the pref.

2. I changed 50000 to 51200 KB, which is exactly 50 MB ;-) Users who have
modified the Cache value before, should still work fine.

3. Thanks to Neil for his help here!
Attachment #113537 - Attachment is obsolete: true
Comment on attachment 113704 [details] [diff] [review]
updated patch

I think you missed a bit from this patch :-(
Also, do you have any idea why unix.js has its own copy of the pref?
Attached patch updated patchSplinter Review
Attachment #113704 - Attachment is obsolete: true
Attachment #118307 - Flags: superreview?(jaggernaut)
Attachment #118307 - Flags: review?(varga)
*** Bug 198912 has been marked as a duplicate of this bug. ***
Comment on attachment 118307 [details] [diff] [review]
updated patch

r=varga
Attachment #118307 - Flags: review?(varga) → review+
Attachment #118307 - Flags: superreview?(jaggernaut) → superreview?(alecf)
Comment on attachment 118307 [details] [diff] [review]
updated patch

+    function GetFields(pageData) {
+      pageData.browserCacheDiskCache.value <<= 10;
+      return null;

You need a comment on the signifigance of the <<=10   (i.e. because the cache
is in kilobytes, and the UI is in megabytes)


other than that, looks good. sr=alecf
Attachment #118307 - Flags: superreview?(alecf) → superreview+
moving to mozilla 1.4beta.
Target Milestone: mozilla1.4alpha → mozilla1.4beta
What about CACHE FOLDER? Does anybody in here use that? I don't see the point
and would like for that to be removed from Mozilla too.
a few user need this to set this to another location if the whole profile is
stored on the network.
never mind then
fixed in trunk.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 299510 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: