Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2013-06-13 20:40:23 +0000
committerjmisinco2013-06-14 16:14:53 +0000
commit4c7fa436c1f79c6a57a813193779ca9e1495fc78 (patch)
tree51e41691bf01db08c510bbb9f7e3fd7020575b08 /plugins/org.eclipse.osee.framework.manager.servlet
parenta87d6a9b6f138ed893e5d62e770d7ca47dd1957c (diff)
downloadorg.eclipse.osee-4c7fa436c1f79c6a57a813193779ca9e1495fc78.tar.gz
org.eclipse.osee-4c7fa436c1f79c6a57a813193779ca9e1495fc78.tar.xz
org.eclipse.osee-4c7fa436c1f79c6a57a813193779ca9e1495fc78.zip
refactor: Remove unecessary calls to AbstractOseeCache.decache
Diffstat (limited to 'plugins/org.eclipse.osee.framework.manager.servlet')
-rw-r--r--plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/OseeCacheServlet.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/OseeCacheServlet.java b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/OseeCacheServlet.java
index 0b4525da217..a75bbe18a02 100644
--- a/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/OseeCacheServlet.java
+++ b/plugins/org.eclipse.osee.framework.manager.servlet/src/org/eclipse/osee/framework/manager/servlet/OseeCacheServlet.java
@@ -151,9 +151,8 @@ public class OseeCacheServlet extends UnsecuredOseeHttpServlet {
branch.setStorageState(StorageState.MODIFIED);
}
branch.clearDirty();
- cache.decache(branch);
- if (!branch.isPurged()) {
- cache.cache(branch);
+ if (branch.isPurged()) {
+ cache.decache(branch);
}
}
} else {

Back to the top