Cache class update: possibility to set a custom directory path.