Difference between revisions of "Miscellaneous Tips"
m |
|||
Line 41: | Line 41: | ||
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 | 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 | ||
+ | |||
+ | ===JobSandbox and the Job Scheduler=== |
Revision as of 17:50, 15 March 2010
Contents
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 milliseconds 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
Server Hit Logging
Opentaps by default will log every user requests in a database for later analysis. If you have a lot of users, or a lot of visitors to your website, this will quickly cause the size of your database to grow. To turn off logging, edit the file framework/webapp/config/serverstats.properties and set the flags to false instead of true.
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