enableSmartCaching
Syntax

StudioPreference.enableSmartCaching;
Access
read/write
Parameters
Return value boolean
true if Smart Caching is enabled, false if it is disabled.
Description
The enableSmartCaching property defines if Smart Caching (automatically downloading a file onto a user’s system when the file is routed to that user) should be enabled.
The default value is true.
Examples
Read the current preference
// Read whether Smart Caching is currently enabled.
var pref = app.studioPreferences.enableSmartCaching;
alert("Smart Caching enabled: " + pref);
Enable Smart Caching
// Enable Smart Caching so files are automatically downloaded when routed to the user.
app.studioPreferences.enableSmartCaching = true;
Disable Smart Caching
// Disable Smart Caching so files are not automatically downloaded when routed.
app.studioPreferences.enableSmartCaching = false;
Supported versions
| Adobe Version | Supported |
|---|---|
| 2023 | ✔ |
| 2024 | ✔ |
| 2025 | ✔ |
| 2026 | ✔ |