From a974b77f62926152beab370d6bc2519d275c1fe9 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 16 Jul 2001 15:05:58 +0000 Subject: [PATCH] Added method: doesSubnodeChecking() to disable subnode checks. --- src/helma/framework/core/Application.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index b8394ccd..2fbb0809 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -696,6 +696,15 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn xmlrpcAccess.checkAccess (proto, method); } + /** + * Decides whether subnode condition should be checked for cached nodes. This is on by default + * and can be switched off by adding "subnodeChecking=false" in the app.properties file. + * It is recommended to leave it on except you suffer severe performance problems and know what you do. + */ + public boolean doesSubnodeChecking () { + return "false".equalsIgnoreCase (props.getProperty ("subnodeChecking")); + } + } //////////////////////////////////////////////////////////////