Fixes #5523: Generate cache in a configurable directory
Merge pull request #120 from peckpeck/bug_5523/generate_cache_in_a_configurable_directory

Fixes #5523: Generate cache in a configurable directory