WGUpdateLog log = (WGUpdateLog) logs.next();
if (log.getDocumentKey().startsWith("$")) {
continue;
}
WGDocumentKey docKey = new WGDocumentKey(log.getDocumentKey());
if (docKey.getTypename().equals(WGDocument.TYPENAME_TML) ||
docKey.getTypename().equals(WGDocument.TYPENAME_CSSJS) ||
docKey.getTypename().equals(WGDocument.TYPENAME_FILECONTAINER)) {
// If lookup variants have changed (and feature is active) we need to change the log to use the base name
// So the correct caches are cleared
if (_lookupVariants == true && _slaveDB != null) {
String suffix = "." + _slaveDB.getDbReference();
if (docKey.getName().endsWith(suffix)) {
String newName = DesignProviderCoreWrapper.cutoffVariantSuffix(docKey.getName(), suffix);
WGDocumentKey newKey = new WGDocumentKey(docKey.getTypename(), newName, docKey.getMediakey());
log = new WGUpdateLog(log.getType(), log.getDate(), log.getUser(), newKey.toString());
}
}
newLogs.add(log);
}