diff --git a/dspace/CHANGES b/dspace/CHANGES index a7e80cdfa4..b09d507795 100644 --- a/dspace/CHANGES +++ b/dspace/CHANGES @@ -17,6 +17,7 @@ - SF Patch #1659901 Import community and collection structure - SF Patch #1659837 ItemIterator now deals with item ids also - SF Patch #1659796 Create administrator wtih command line options +- SF Patch #1659841 Add option to clear context object cache (Mike Judd) - SF Patch #1528142 Malformed OAI-PMH response: illegal bytes in UTF-8 for SF Bug #1490162 diff --git a/dspace/src/org/dspace/core/Context.java b/dspace/src/org/dspace/core/Context.java index 614664656e..60cd24d635 100644 --- a/dspace/src/org/dspace/core/Context.java +++ b/dspace/src/org/dspace/core/Context.java @@ -321,6 +321,14 @@ public class Context objectCache.remove(key); } + /** + * Remove all the objects from the object cache + */ + public void clearCache() + { + objectCache.clear(); + } + /** * set membership in a special group *