Skip to content
Media CloudDocs
Asset Variables

Asset Variables

These environment variables control how Asset push/pull works.

2 min read·2 tags

These environment variables control how Asset push/pull works.

VariableTypeDescription
MCLOUD_TOOL_ENABLED_ASSETSbooleanAsset feature is enabled.
MCLOUD_ASSETS_STORE_CSSbooleanIf enabled, Push mode is used to upload CSS assets to cloud storage. Disable for Pull mode.
MCLOUD_ASSETS_STORE_JSbooleanIf enabled, Push mode is used to upload javascript assets to cloud storage. Disable for Pull mode.
MCLOUD_ASSETS_PROCESS_LIVEbooleanAssets will be uploaded to cloud storage as pages are browsed on the live site, but only if they don’t already exist on cloud storage or their version number has changed.
MCLOUD_ASSETS_CACHE_CONTROLstringSets the Cache-Control metadata for uploaded assets.
MCLOUD_ASSETS_EXPIRESnumberSets the Expire metadata for uploaded assets.
MCLOUD_ASSETS_CDN_BASEurlThe base URL for the CDN.
MCLOUD_ASSETS_USE_BUILD_VERSIONbooleanAssets that have been enqueued in WordPress without a specified version will normally be skipped when pushing/pulling assets. When this option is enabled, this tool will use a custom build number for the version.
MCLOUD_ASSETS_LOG_WARNINGSbooleanWhen enabled and Media Cloud Debugging is enabled, this will log warnings about files that couldn’t be uploaded to the error log.

Need a hand with this guide?

Send support the exact step you’re stuck on and we’ll help you finish the setup.

Contact support
Start typing to search the docs

Escto close·⌘Kto open

View all results →