mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 22:13:08 +00:00
[DS-3770] always uncache item after performed curation task for better performance
This commit is contained in:
@@ -86,7 +86,9 @@ public abstract class AbstractCurationTask implements CurationTask {
|
|||||||
if (Constants.COLLECTION == type) {
|
if (Constants.COLLECTION == type) {
|
||||||
Iterator<Item> iter = itemService.findByCollection(Curator.curationContext(), (Collection) dso);
|
Iterator<Item> iter = itemService.findByCollection(Curator.curationContext(), (Collection) dso);
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
performObject(iter.next());
|
Item item = iter.next();
|
||||||
|
performObject(item);
|
||||||
|
Curator.curationContext().uncacheEntity(item);
|
||||||
}
|
}
|
||||||
} else if (Constants.COMMUNITY == type) {
|
} else if (Constants.COMMUNITY == type) {
|
||||||
Community comm = (Community) dso;
|
Community comm = (Community) dso;
|
||||||
|
Reference in New Issue
Block a user