Difference between revisions of "Miscellaneous Tips"

From Opentaps Wiki
Jump to navigationJump to search
(Managing the Cache)
Line 4: Line 4:
  
 
You can improve the performance of opentaps by increasing the use of caching.  Edit the file <tt>framework/base/config/cache.properties</tt> and increase the number of million seconds various things are cached by the system.  For example, you can increase the caching of the screens by using these settings:
 
You can improve the performance of opentaps by increasing the use of caching.  Edit the file <tt>framework/base/config/cache.properties</tt> and increase the number of million seconds various things are cached by the system.  For example, you can increase the caching of the screens by using these settings:
 +
<pre>
 +
minilang.SimpleMethodsDirect.expireTime=3600000
 +
minilang.SimpleMethodsResource.expireTime=3600000
 +
minilang.SimpleMethodsURL.expireTime=3600000
 +
 +
script.BshLocationParsedCache.expireTime=3600000
 +
script.BshBsfParsedCache.expireTime=3600000
 +
 +
webapp.BsfEvents.expireTime=3600000
 +
webapp.ControllerConfig.expireTime=3600000
 +
 +
widget.form.locationResource.expireTime=3600000
 +
widget.form.webappResource.expireTime=3600000
 +
widget.menu.classResource.expireTime=3600000
 +
widget.menu.locationResource.expireTime=3600000
 +
widget.menu.webappResource.expireTime=3600000
 +
widget.screen.locationResource.expireTime=3600000
 +
widget.screen.webappResource.expireTime=3600000
 +
widget.tree.locationResource.expireTime=3600000
 +
widget.tree.webappResource.expireTime=3600000
 +
 +
template.ftl.general.expireTime=3600000
 +
template.ftl.location.expireTime=3600000
 +
</pre>
  
 
====How to Disable Users====
 
====How to Disable Users====

Revision as of 16:36, 24 October 2008

Managing the Cache

You can improve the performance of opentaps by increasing the use of caching. Edit the file framework/base/config/cache.properties and increase the number of million seconds various things are cached by the system. For example, you can increase the caching of the screens by using these settings:

minilang.SimpleMethodsDirect.expireTime=3600000
minilang.SimpleMethodsResource.expireTime=3600000
minilang.SimpleMethodsURL.expireTime=3600000

script.BshLocationParsedCache.expireTime=3600000
script.BshBsfParsedCache.expireTime=3600000

webapp.BsfEvents.expireTime=3600000
webapp.ControllerConfig.expireTime=3600000

widget.form.locationResource.expireTime=3600000
widget.form.webappResource.expireTime=3600000
widget.menu.classResource.expireTime=3600000
widget.menu.locationResource.expireTime=3600000
widget.menu.webappResource.expireTime=3600000
widget.screen.locationResource.expireTime=3600000
widget.screen.webappResource.expireTime=3600000
widget.tree.locationResource.expireTime=3600000
widget.tree.webappResource.expireTime=3600000

template.ftl.general.expireTime=3600000
template.ftl.location.expireTime=3600000

How to Disable Users

Set the UserLogin.enabled to "N" and make sure that the disabledDateTime is set to null. Otherwise, the user login will be re-enabled 15 minutes after the disabledDateTime.


How to change the default ID numbers

Edit the table SequenceValueItem and change the seqId for the table you want. For example, if you want to set all your productIds to begin with "8000000" instead of "10000", just create a row for "Product" with seqId = 8000000