Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Disable the Chimera disk cache Web Browsers
If you have broadband, you have no use for the Chimera cache, and the way its inflating like a balloon. So instead of clicking Preferences, clicking Navigation, clicking the tab 'History', and clicking 'clear disk cache' to clear the disk cache one time, put the following in the ~/Library -> Application Support -> Chimera -> Profiles -> Default -> 12345.slt -> prefs.js file:
user_pref("browser.cache.disk.enable", false);
Voila! The trick of the week! I got it from Rahmcoff (Peter of the Norse) over at the Chimera board. Note that the "12345.slt" folder will actually be named something else on your machine; you want the folder that ends in .slt ... and you may have a folder with your username instead of "Default."

[Editor's note: I haven't tried this one myself yet, and I would assume the option to disable disk cache will eventually make its way into the normal Chimera Preferences panel.]
    •    
  • Currently 2.17 / 5
  You rated: 5 / 5 (6 votes cast)
 
[11,560 views]  

Disable the Chimera disk cache | 24 comments | Create New Account
Click here to return to the 'Disable the Chimera disk cache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Usefulness?
Authored by: Anonymous on Nov 07, '02 10:10:03AM

I don't mean this sarcastically; I mean this as an honest, "I don't know so I'll ask" question.

What benefit will I see from implementing this hint? Will it improve browser speed, or merely conserve disk space?

Thanks much.



[ Reply to This | # ]
Usefulness?
Authored by: Welles Goodrich on Nov 07, '02 10:47:36AM

I believe that the main benefit for broadband users would be cutting down on disk fragmentation. The amount a cache occupies isn't that big if you are using Navigator .6 and have your clear history cache set to one or two days. In fact, if you set the history cache to 0 days I wonder if that would do the same as adding this preference? (Nevertheless I added this to my preference file and am appreciative of the tip.)



[ Reply to This | # ]
Usefulness?
Authored by: aaronfaby on Nov 07, '02 11:32:13AM

History and cache are two different things.

The history is the backlog of URL's that you have visited within the time specified in the preferences. The history is then used to autocomplete URL's in
the URL bar.



[ Reply to This | # ]
Usefulness?
Authored by: bipto on Nov 07, '02 06:14:04PM

From a web developer's point a view, it's useful to set your cache to zero so you know you're always seeing the latest versions of pages, graphics, etc. From a regular user's point of view, I guess it's mostly about disk usage...



[ Reply to This | # ]
A Little Honesty
Authored by: readparse on Nov 08, '02 08:17:41AM

Come on now, we all know it's all about hiding the porn :) Disk cache is something else you have to remember when covering your tracks.

Besides that, any browser cache that doesn't use a configurable amount of disk space is one that is often better off disabled. It's good to be able to control these things.



[ Reply to This | # ]
A Little Honesty
Authored by: bipto on Nov 08, '02 09:20:03AM

Well, yes, another reason one might disable the cache would be to cover their browsing tracks...



[ Reply to This | # ]
if chimera crashes...
Authored by: da5idonimac on Nov 11, '02 05:18:10PM

it won't work for me until i delete the disk cache. which can take a lot of time if you never clean it out (i AM forgetful).

this should solve that problem.



[ Reply to This | # ]
Don't edit prefs.js ...
Authored by: gvitale on Nov 07, '02 12:16:26PM

... as it is automatically updated by the program and you risk to loose your changes. Create a user.js file instead (plain text file) in the same directory as prefs.js and add there your prefs. Do this when the browser is not running.

This is the content of my user.js:

pref("chimera.show_history", true);
user_pref("image.animation_mode", "once");
pref("browser.chrome.site_icons", true);
pref("browser.chrome.favicons", true);
pref("font.minimum-size.x-western", 12);
pref("font.minimum-size.x-user-def", 12);
user_pref("browser.display.screen_resolution", 96);

Enjoy Chimera



[ Reply to This | # ]
Don't edit prefs.js ...
Authored by: poultryfarm on Nov 07, '02 03:28:22PM

both methods don't seem to work for me.

with the original hint the file seems to get written over - automatically generated.
and i tried the user.js method but my cache folder still seems to be filling up with files.

chimera knows to look in user.js or do i need to tell it to look there?
am i missing something.



[ Reply to This | # ]
user.js problems--anyone else?
Authored by: ScooterComputer on Nov 07, '02 03:45:49PM

Is anyone else seeing problems getting user.js working? To get prefs.js to 'keep' changes, make sure you edit the file while Chimera is NOT running. But I just CAN'T get Chimera to read user.js...no matter what I do. I'm running the most recent nightly build, and don't want to file a bug report until I can possibly figure out what is going on. So it looks like at least two of us see it :)



[ Reply to This | # ]
user.js problems--anyone else?
Authored by: poultryfarm on Nov 07, '02 04:29:56PM
To get prefs.js to 'keep' changes, make sure you edit the file while Chimera is NOT running.

i did do that but it is still not 'keeping' . as soon as i quit chimera and restart it has overwritten the file.


[ Reply to This | # ]
user.js problems--anyone else?
Authored by: ScooterComputer on Nov 07, '02 06:28:26PM

Well, something else I found: make sure the file ENDS with an empty line. There should be one there in the default...also, i usually add stuff into the middle of the file; it seemed that when I added things to the end, they would get dropped off for some reason.



[ Reply to This | # ]
Don't edit prefs.js ...
Authored by: poultryfarm on Nov 07, '02 03:31:54PM
what are these 3 preferences, what do they do?
why do some have have 'user_pref' and others just 'pref'.

user_pref("image.animation_mode", "once");
pref("browser.chrome.site_icons", true);
pref("browser.chrome.favicons", true);


... so many questions sorry

[ Reply to This | # ]
Re: Don't edit prefs.js ...
Authored by: vgz on Nov 07, '02 04:05:02PM
what are these 3 preferences, what do they do?
why do some have have 'user_pref' and others just 'pref'.

user_pref("image.animation_mode", "once");
pref("browser.chrome.site_icons", true);
pref("browser.chrome.favicons", true);

... so many questions sorry


I would assume that the first one determines the numbers of times animated images play.
The second one makes the favicon for sites show up in their tab and the address bar.
The third one makes the favicons show up on your bookmarks.

[ Reply to This | # ]
Re: Don't edit prefs.js ...
Authored by: poultryfarm on Nov 07, '02 04:18:04PM

perfect. all clear now. thanks for the explanation.



[ Reply to This | # ]
Re: Don't edit prefs.js ...
Authored by: bipto on Nov 07, '02 06:16:42PM

But Chimera shows favicons in the tabs and address bar by default, right? At least it does for me...



[ Reply to This | # ]
Re: Don't edit prefs.js ...
Authored by: poultryfarm on Nov 07, '02 06:25:48PM

for me (default is):

address bar yes
tabs no
toolbar no



[ Reply to This | # ]
Solution to questions asked
Authored by: aranor on Nov 07, '02 08:52:23PM

Ok, here's the solution to all questions asked:

user.js is NOT read by Chimera. The poster may have something special about their build, or something special about their prefs.js

prefs.js has to be edited while Chimera is NOT running.

The difference between user_prefs() and prefs() is that user_prefs() calls actually STAY in prefs.js (although they may be reordered) and prefs() calls do NOT stay. If you take those 3 calls asked about and change the prefs() to user_prefs(), they stay in the file. Except for the browser.chrome.site_icons one. I suspect that's because it's true by default, so there's no reason to write it out to file.

Favicons show up in the nav bar by default. They also show up in tabs by default. They do NOT show up in bookmarks by default.

If you add:

user_pref("browser.cache.disk.enable", false);
user_pref("browser.chrome.favicons", true);

to your prefs.js file while Chimera is NOT running AND leave a blank line at the end, they get remembered. I didn't list the browser.chrome.site_icons call here because, as I mentioned before, it doesn't get saved and I believe the default value is true.

I hope this answers all questions. Oh, and just for reference, these answers were all obtained via experimentation.



[ Reply to This | # ]
user.js IS read by Chimera
Authored by: frankko on Nov 07, '02 10:32:50PM

Interesting. My user.js file works. I took the following line from my Mozilla prefs.js file and added it to a newly created user.js file in my Chimera profile folder:

user_pref("dom.disable_window_move_resize", true);

It prevents sites from moving and resizing the current browser window (if it isn't obvious). Going to a site that tries to resize the browser window shows that, on my system, the user_pref is working. Quitting Chimera 0.6 and changing true to false, restarting Chimera, and going back to that site, the browser will resize.

So, for me, at least, user.js works fine.

I wonder if there is something that's keeping it from working for other people? I'm using 10.2.1. Chimera 0.6. I created the user.js file in BBEdit (Unix line breaks).



[ Reply to This | # ]
user.js IS read by Chimera
Authored by: aranor on Nov 08, '02 03:55:54PM

Ok, you're right.

user.js is read by Chimera.

BUT it only reads user_pref() lines, not pref() lines, which is why I thought it wasn't working before (I was using favicons to check, and the posted way to enable them in bookmarks was with pref() instead of user_pref() )

However, the weird thing is, when you run Chimera and quit it, the user_pref() lines in user.js get copied to prefs.js, so you can put them in user.js, run Chimera, quit, and delete user.js and your prefs still exist!



[ Reply to This | # ]
Solution to questions asked
Authored by: malvolio on Nov 07, '02 11:04:45PM

Yes, that works. I did it using your suggestion, and my cache folder is still totally empty.



[ Reply to This | # ]
working now
Authored by: poultryfarm on Nov 08, '02 01:34:12AM

it seems i had erased the line break the end. all is working now with normal prefs.js
thank you



[ Reply to This | # ]
Re: Disable the Chimera disk cache
Authored by: obiwan2u on Nov 09, '02 12:51:45AM

Um, doesn't disabling the disk cache slow down browsing when revisiting static web sites?
Ben



[ Reply to This | # ]
That's what I am seeing...
Authored by: mingking on Nov 16, '02 03:58:31PM

I have found that if I disable the disk cache, going to sites that have big static images load slower the first time within a single session. I can see the images progressively load. The second time I access the site in that session they load instantly. I presume there is a RAM cache in effect on that second access. If I quit and restart, the first access is slow again.

If I leave the cache enabled, the static images load instantly even after quitting and restarting (after I have been to the site at least once).


I would say YMMV on this hint.



[ Reply to This | # ]