Skip to main content

Cache Service

Configuration for using the delivery service as a cache layer

Cache Configuration

NameDescriptionRequiredType
USE_CACHE
Flag to determine whether to use the delivery service as a cache layer
Notes:
  • Requires AWS environment variables to be configured when enabled
  • If var IS_PROXY of proxy service is set to true, cache service will be in use even if this variable is set to false
false
boolean
CACHE_CLEAR_TIME_EXPRESSION
Specifies the cron schedule for clearing the cache
false
string
Default:0 0 * * *
CACHE_EXPIRATION_HOURS
Sets the duration (in hours) for how long cached items remain valid before expiration
false
number
Default:7 days
CACHE_SYNC_TIME_EXPRESSION
Specifies the cron schedule for syncing the cache data between the DB and S3
false
string
Default:0 01 * * *

Harbor Registry Cache

NameDescriptionRequiredType
HARBOR_CACHE_REGISTRY_URL
Harbor registry project that acts as a cache to the main Docker registry
Notes:
  • This variable is required if the cache service cached docker images.
Required if any of the following:
  • USE_CACHE = "true"
  • IS_PROXY = "true"
string