Allow the cache source to be configurable (from rrudduck)