Thanks for uploading this. Ccache saves a lot of time on recompiles, I used to use it all the time on another distro but I set it aside and haven't used it on TC until this extension . Another way to make it universal in TC is to first symlink a gcc and g++ to ccache:
mkdir /usr/local/ccache/bin
ln -s /usr/local/bin/ccache /usr/local/ccache/bin/gcc
ln -s /usr/local/bin/ccache /usr/local/ccache/bin/g++
Then at the command line before compiling, or enter in your bashrc this:
export CCACHE_DIR=/mnt/hda2/ccache
export PATH="/usr/local/ccache/bin:${PATH}"
Exporting PATH makes use of the gcc and g++ symlinks in preference to the real gcc and g++ in /usr/local/bin, and the CCACHE_DIR you may want to set somewhere on permenant storage if your /home/tc or /root directories reside in RAM and will be lost on reboot, but that is personal preference.
By the way, this works well on TC 2.x, would it be OK if I copy it over?