public static void configCacheSettings ( String imFileDir , String docDir , String fileDir , String queryResultDir , String commandDir , String analyticsDir , SystemSetting setting ) { importantFileDir = imFileDir ; if ( ! importantFileDir . endsWith ( "/" ) ) { importantFileDir += "/" ; } documentDir = docDir ; if ( ! documentDir . endsWith ( "/" ) ) { documentDir += "/" ; } fileCacheDir = fileDir ; if ( ! fileCacheDir . endsWith ( "/" ) ) { fileCacheDir += "/" ; } queryResultCacheDir = queryResultDir ; if ( ! queryResultCacheDir . endsWith ( "/" ) ) { queryResultCacheDir += "/" ; } commandCacheDir = commandDir ; if ( ! commandCacheDir . endsWith ( "/" ) ) { commandCacheDir += "/" ; } analyticsCacheDir = analyticsDir ; if ( ! analyticsCacheDir . endsWith ( "/" ) ) { analyticsCacheDir += "/" ; } makeSureCacheDirWorkable ( ) ; defaultSetting = setting ; }
config local cache setting .