«
所有我感兴趣的资料,webdesign,webdev,linux,etc.Enjoy。
3 条目 已标记 "cache"
最近 tags:
view [+],
the [+],
ramdisk [+],
of [+],
in [+],
fix [+],
firefox [+],
cleaner [+],
HTTP [+],
Disable [+],
BIND9 [+]
-
How to disable the "Launching HTTP Cache Cleaner..." process that appears every once in a while on the taskbar/panel when using KDE apps like Amarok in GNOME.
Install kcontrol
sudo apt-get install kcontrol
It'll probably install kdebase-data kicker and libkonq4 too (not sure if they're needed but let it do it).
2. Go to Applications -> Other -> Cache. Uncheck the "Use cache" option, Apply, Close and you're done!
With these two simple steps you'll get rid of that "Launching HTTP Cache Cleaner" window forever.
-
I was trying to find a way to set up a ramdisk and have firefox store the cache there.
Step 1: Make a place to mount the ramdisk. In the terminal type:
sudo mkdir /media/ramdisk
Where /media/ramdisk is where you will mount the ramdisk.
Step 2: Mount the ramdisk
sudo mount -t tmpfs -o size=64M,nr_inodes=10k,mode=0777 tmpfs /media/ramdisk
We set the permisions to 777 which allows anybody and everybody to access it. Set these as you wish
Step 3 In firefox: Set the cache location to you new ramdisk
Basically type
about:config
in the URL address bar. Search for
browser.cache.disk.parent_directory
or add a new string by right clicking and choosing new. Then set the location to your ramdisk. In my case I set it to
/media/ramdisk/
Optional:
Step 4: If you wish to automount the ramdisk you need to edit your FSTAB file
gksudo gedit /etc/fstab
Add the line
tmpfs /media/ramdisk tmpfs size=64M,nr_inodes=10k,mode=777 0 0
Everything should be all set. You can check the ramdisk to see if a folder 'Cache' is created when you load firefox. Don't forget to close firefox or restart firefox before you set this up.
-
Bind 9 makes it fairly easy to dump and view the cache of a caching BIND DNS server. All you have to do is run under root:
rndc dumpdb -cache
This will create a file called named_dump.db in the /var/cache/bind/ directory. You can easily open this .db with your favorite text editor.
** If your instance of BIND is chrooted, for example to /var/lib/named/, then the cache dump file will be located in the /var/lib/named/var/cache/bind/ directory.
** The dumpdb feature of rndc has other options including a -all or -zone flag. Check 'rndc --help' for more information.