There is an option in about:config (Firefox 4):
I have tried to enable and disable this option, nothing changes. The cache just grows, and grows.
What's the point?
(Couldn't find any detail about this.)
It sets the disk cache size according to the available disk space. If you have a fairly modern computer, there should be at least 1GB available.