The graphHandler constructor doesn't receive a TSDB object to access the Config object, and since the cachedir is only used once in the class I just put it directly in getGnuplotBasePath().