Type about:config in url bar and change "browser.cache.memory.capacity" to whatever value you like. I'm using 8192 (default is 1024). For more information on firefox's about:config entries, see here - http://kb.mozillazine.org/Firefox_:_...config_Entries