ilscipio/scipio-erp

View on GitHub
framework/base/config/cache.properties

Summary

Maintainability
Test Coverage
###############################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
###############################################################################

####
# OFBiz UtilCache properties File
####

# Default Settings
# Sets the maximum number of entries that can be placed in the cache. A
# setting of zero indicates no maximum.
#default.maxSize=0
# Sets the expire time in milliseconds. If set to 0, elements will never expire.
#default.expireTime=0
#default.useSoftReference=false

# SCIPIO: allow file listeners to trigger clear cache
cache.fileupdate.enable=true

# SCIPIO: Throw an error if delayqeue size larger than 10000 entries
cache.delayqeue.log.enable=false

# properties.UtilPropertiesResourceCache
#properties.UtilPropertiesResourceCache.maxSize=0
#properties.UtilPropertiesResourceCache.expireTime=0

# properties.UtilPropertiesUrlCache
#properties.UtilPropertiesUrlCache.maxSize=0
#properties.UtilPropertiesUrlCache.expireTime=0

# properties.GlobalPropertiesBundleCache (SCIPIO)
#properties.GlobalPropertiesBundleCache.maxSize=0
#properties.GlobalPropertiesBundleCache.expireTime=0

# properties.ResourceBundlePropertiesCache - temporary cache (SCIPIO); recommended to use expireTime to save memory
#properties.ResourceBundlePropertiesCache.maxSize=0
properties.ResourceBundlePropertiesCache.expireTime=30000

# This should be increased if more users will be simultaneously on the system.
security.UserLoginSecurityGroupByUserLoginId.maxSize=1000
# 30 min
security.UserLoginSecurityGroupByUserLoginId.expireTime=18000000000

security.SecurityGroupPermissionCache.maxSize=0
# 30 min
security.SecurityGroupPermissionCache.expireTime=18000000000

# Examples for per-delegator Entity Engine cache settings
#entitycache.entity.default.ServerHitType.expireTime=0
#entitycache.entity.default.ServerHitType.useSoftReference=true
#entitycache.entity-list.default.ProductPriceRule.expireTime=0
#entitycache.entity-list.default.ProductPriceRule.useSoftReference=true

# product.content.rendered cache settings, set to expire in 1 minutes by default to avoid too much administrative confusion, can comment this out or increase for better performance
product.content.rendered.expireTime=600000000
product.content.rendered.useSoftReference=true
# index support - index keys are sub-keys of main cache keys - disabled by default - experimental
product.content.rendered.keyFormat=productId::productContentTypeId::locale::-::-::delegatorName
product.content.rendered.index.product.enabled=false
product.content.rendered.index.product.keyFormat=productId::delegatorName
product.productsummary.rendered.enable=true
product.productsummary.rendered.expireTime=600000000
product.productsummary.rendered.useSoftReference=true
product.miniproductsummary.rendered.enable=true
product.miniproductsummary.rendered.expireTime=600000000
product.miniproductsummary.rendered.useSoftReference=true
product.productdetail.rendered.enable=true
product.productdetail.rendered.expireTime=600000000
product.productdetail.rendered.useSoftReference=true
category.categorydetail.rendered.enable=true
category.categorydetail.rendered.expireTime=600000000
category.categorydetail.rendered.useSoftReference=true

# SCIPIO: Image variant dedicated caches
content.image.variants.expireTime=60000
content.image.variants.useSoftReference=true
product.image.variants.expireTime=60000
product.image.variants.useSoftReference=true
category.image.variants.expireTime=60000
category.image.variants.useSoftReference=true
# If fileCheck true, variants not having database records are checked for presence before being published so that
# missing files don't produce bad links. It is recommended to set this false if product.image.ensure.enabl" is
# set to true below (due to async image generation).
# The ImageVariants.hasVariants() and ImageVariants.Variant.hasVariant() manual checks can always be called
# manually by client code regardless of this setting as they ignore this setting and may perform a file check.

# NOTE: This check has no effect (unneeded) if all product images are regenerated using productImageAutoRescale(All)
# with createSizeTypeContent=true and recreateExisting=true.
product.image.variants.sourceCheck=true
# NOTE: This check has no effect (unneeded) if all category images are regenerated using categoryImageAutoRescale(All)
# with createSizeTypeContent=true and recreateExisting=true.
category.image.variants.sourceCheck=true

# product.config cache settings, used by product (pc like) configurations, set to expire in 1 minutes by default to avoid too much administrative confusion, can comment this out or increase for better performance
product.config.expireTime=60000
product.config.useSoftReference=true

# SCIPIO: Cache check for product image auto-resize variants, when too low more file access occurs on views
# NOTE: If you set this to true, you may want to set product.image.variants.sourceCheck above to false.
product.image.ensure.enable=false
product.image.ensure.expireTime=60000
product.image.ensure.useSoftReference=true
# SCIPIO: Cache check for category image auto-resize variants, when too low more file access occurs on views
# NOTE: If you set this to true, you may want to set category.image.variants.sourceCheck above to false.
category.image.ensure.enable=false
category.image.ensure.expireTime=60000
category.image.ensure.useSoftReference=true

# SCIPIO: category content cache settings; should mirror those of product.content.rendered above
category.content.expireTime=60000
category.content.useSoftReference=true

# SCIPIO: Additional ContentWrapper caches, for reference/tweaking if needed
# WARN: Some of these could cause unwanted browsing behavior if cached inappropriately, notably order.content.
# The .useSoftReference=true is probably necessary (is default on all of these, but should be uncommented if other settings set here)
#order.content.expireTime=
#order.content.useSoftReference=true
#party.content.rendered.expireTime=
#party.content.rendered.useSoftReference=true
#configItem.content.expireTime=
#configItem.content.useSoftReference=true
#product.promo.content.rendered.expireTime=
#product.promo.content.rendered.useSoftReference=true
#workeffort.content.rendered.expireTime=
#workeffort.content.rendered.useSoftReference=true

# Development Mode - comment these out to better cache groovy scripts, etc
#These are all cleared by default every 100000000 milliseconds, or ten seconds
minilang.SimpleMethodsDirect.expireTime=100000000
minilang.SimpleMethodsResource.expireTime=100000000
minilang.SimpleMethodsURL.expireTime=100000000

script.BshLocationParsedCache.expireTime=100000000
script.BshBsfParsedCache.expireTime=100000000
script.ParsedScripts.expireTime=100000000
script.GroovyLocationParsedCache.expireTime=100000000
script.GroovyInlineParsedCache.expireTime=100000000

# Uncomment this for more flexibility with service changes.
# Clearing this cache will reload service defs, for all service and so it takes time and results in lots of log messages, so it is commented by default.
#service.ModelServiceMapByDispatcher.expireTime=100000000

webapp.BsfEvents.expireTime=100000000
webapp.JasperReportsCompiled.expireTime=100000000
webapp.ControllerConfig.expireTime=100000000

widget.form.locationResource.expireTime=100000000
widget.form.webappResource.expireTime=100000000
widget.grid.locationResource.expireTime=100000000
widget.grid.webappResource.expireTime=100000000
widget.menu.classResource.expireTime=100000000
widget.menu.locationResource.expireTime=100000000
widget.menu.webappResource.expireTime=100000000
widget.screen.locationResource.expireTime=100000000
widget.screen.webappResource.expireTime=100000000
widget.tree.locationResource.expireTime=100000000
widget.tree.webappResource.expireTime=100000000

template.ftl.location.expireTime=10
template.ftl.general.expireTime=1000
widget.screen.template.ftl.general.expireTime=1000
# SCIPIO: 2016-10: new cache for widget-implementing ftl macros (added for 1.14.2)
widget.screen.template.ftl.macro.expireTime=100000000
# SCIPIO: 2016-11-10: new caches for screen inline templates (added for 1.14.3)
widget.screen.template.ftl.inline.expireTime=100000000
widget.screen.template.ftl.inline.basic.expireTime=100000000

# SCIPIO: If true (default), Freemarker file loads go through the Freemarker Configuration cache - these use updatedelay as caching expiry.
template.ftl.useFtlCaches=true
# SCIPIO: 2019-09: new setting for freemarker updatedelay (set to 5s by default - on production this should be high)
template.ftl.updatedelay=1000

# SCIPIO: 2019-09: enable/disable @utilCache (utilities.ftl)
template.ftl.inlinecaching=N

# SCIPIO: If true, UtilCache is used even around the Freemarker's filesystem cache; if false, only Freemarker cache is used (and you should probably increase updatedelay above).
# This setting currently applies only to filesystem templates; in-memory templates still use the UtilCache expireTime above (template.ftl.general.expireTime).
template.ftl.useWrapperUtilCaches=false

# SCIPIO: Global static cache for templating API library variables generated by htmlVariables.groovy and theme variable scripts
# NOTE: If this disabled, variable scripts run once per render (once per request); if enabled they lose access to context.
render.api.lib.variables.static.enabled=true
render.api.lib.variables.static.expireTime=10000

ModelDataFile.expireTime=10000

# SCIPIO: 2017-05-08: targeted rendering expression cache. They are public-facing so they must have entry limit.
widget.renderer.targeted.expr.maxSize=100000000
widget.renderer.targeted.expr.expireTime=0
widget.renderer.targeted.multiexpr.maxSize=100000000
widget.renderer.targeted.multiexpr.expireTime=0

# SCIPIO: contains-expression cache - usually internal, but bad coding could cause problems so put a limit
widget.screen.containsexpr.maxSize=100000000
widget.screen.containsexpr.expireTime=0

# SCIPIO: cache for some SEO alt url lookups - this should be treated similar to the product content cache (product.content.rendered)
seo.filter.product.alturl.part.expireTime=100000000
seo.filter.product.alturl.part.useSoftReference=true
seo.filter.category.alturl.part.expireTime=100000000
seo.filter.category.alturl.part.useSoftReference=true
seo.filter.product.url.expireTime=3600000000
seo.filter.product.url.useSoftReference=true
seo.filter.product.trails.expireTime=3600000000
seo.filter.product.trails.useSoftReference=true
seo.filter.category.url.expireTime=3600000000
seo.filter.category.url.useSoftReference=true
seo.filter.category.trails.expireTime=3600000000
seo.filter.category.trails.useSoftReference=true

# SCIPIO: 2018-08-07: Cache for manually-loaded urlrewrite.xml files (not by tuckey UrlRewriteFilter, which has its own control)
scipio.urlrewrite.conf.path.expireTime=0
scipio.urlrewrite.conf.webapp.expireTime=0