mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00
[DS-3770] always uncache item after performed curation task for better performance (#1892)
This commit is contained in:

committed by
Hardy Pottinger

parent
da2369229d
commit
8aaa4695b1
@@ -93,7 +93,9 @@ public abstract class AbstractCurationTask implements CurationTask
|
||||
Iterator<Item> iter = itemService.findByCollection(Curator.curationContext(), (Collection) dso);
|
||||
while (iter.hasNext())
|
||||
{
|
||||
performObject(iter.next());
|
||||
Item item = iter.next();
|
||||
performObject(item);
|
||||
Curator.curationContext().uncacheEntity(item);
|
||||
}
|
||||
}
|
||||
else if (Constants.COMMUNITY == type)
|
||||
@@ -147,7 +149,7 @@ public abstract class AbstractCurationTask implements CurationTask
|
||||
if(dso.getType()==Constants.ITEM)
|
||||
{
|
||||
performItem((Item)dso);
|
||||
}
|
||||
}
|
||||
|
||||
//no-op for all other types of DSpace Objects
|
||||
}
|
||||
|
Reference in New Issue
Block a user