Add ability to use cache directory for DomainParser

Replaced the non-functional cache settings with a setCachePath()
function that sets the cache path (currently only used for DomainParser)