*/
public void refresh () {
boolean hasCache = false;
IProcessorModule[] caches = ModulesManager.getInstance().getModuleInstances("com.flaptor.hounder.crawler.modules.CacheModule");
if (caches.length > 0) {
CacheModule cacheModule = null;
FileCache<DocumentCacheItem> fileCache = null;
for (int i=0; i<caches.length && null == fileCache; i++) {
cacheModule = (CacheModule)caches[i];
fileCache = cacheModule.getPageCache();
}
if (null != fileCache) {
try {
ModulesManager.getInstance().unloadModule(cacheModule);
hasCache = true;