TTS Cache Configuration Options

Change cache configuration options for TTS

This section is OPTIONAL

The header for this section is [cache.tts]

Table 1. cache.tts
Name Mandatory Type Default Description
cache_directory no string /opt/blueworx/vr/res/cache/tts This parameter was introduced in version 7.15.0

Directory relative to /opt/blueworx/vr to be used to cache TTS. If the path starts with a forward slash it will be treated as an absolute path
size_on_filesystem no size 0 bytes This parameter was introduced in version 7.15.0

The amount of space this cache can use on the filesystem. Setting this to 0 disables the file cache

This is a size unit value and can be written in human readable form (e.g. "20MiB", "20MB", "10GB" etc.) If just a number is supplied, it will be interpreted as MEGABYTES

Min: 0 bytes, Max: 10 TB
resource_max_age no time 1 week This parameter was introduced in version 7.15.0

Used to define the default expiration time for fetched resources. If a fetched resource from an origin server does NOT contain an Expires header or a max-age Cache-Control directive, then the default expiration of that fetched resource will be: resource_max_age + current system time.

This is a time unit value and can be written in human readable form (e.g. "1 day", "3 weeks" etc.) If just a number is supplied, it will be interpreted as SECONDS

Min: 0 milliseconds, Max: 20 years
default_max_stale no time 0 milliseconds This parameter was introduced in version 7.25.0

Used to define the default max-stale value when fetching a resource. This determines how long a cached resource can be used after it becomes stale

This is a time unit value and can be written in human readable form (e.g. "1 day", "3 weeks" etc.) If just a number is supplied, it will be interpreted as SECONDS

Min: 0 milliseconds, Max: 20 years
default_stale_if_error no time 1 day This parameter was introduced in version 7.25.0

Used to define the default stale-if-error value when fetching a resource. stale-if-error determines how long a stale resource can be used if the resource is available in the cache but cannot be fetched

This is a time unit value and can be written in human readable form (e.g. "1 day", "3 weeks" etc.) If just a number is supplied, it will be interpreted as SECONDS

Min: 0 milliseconds, Max: 20 years