return NULL;
}
-bool configcache::readConfig(vector<string> *excludefiles)
+bool configcache::readConfig(vector<unsigned long> *excludeFileHashes)
{
if(DATADIR == "" || MODE == CACHE_MODE_DISABLED) return false;
openFileDesc = inFiles.back();
- if (excludefiles != NULL)
- for (vector<string>::iterator exit = excludefiles->begin(); exit != excludefiles->end(); ++exit)
- if ( *exit == inFiles.back().filename ) {
+ if (excludeFileHashes != NULL)
+ for (vector<unsigned long>::iterator exit = excludeFileHashes->begin(); exit != excludeFileHashes->end(); ++exit)
+ if ( *exit == hash(inFiles.back().filename) ) {
excludethisfile = true;
break;
}