ContentCachingService
The payload that configures the Content Caching service.
Declaration
object ContentCachingServiceProperties
| Name | Type | Description |
|---|---|---|
AllowCacheDelete | boolean | If true, the system purges content from the cache automatically when it needs disk space for other apps when free disk space runs low on the computer. Set to Available: macOS 10.15+ Deprecated: macOS 27+ |
AllowPersonalCaching | boolean | If Deprecated: macOS 27+ |
AllowSharedCaching | boolean | If Deprecated: macOS 27+ |
AutoActivation | boolean | If Removing a profile that set Deprecated: macOS 27+ |
AutoEnableTetheredCaching | boolean | If Available: macOS 10.15.4+ Deprecated: macOS 27+ |
CacheLimit | integer | The maximum number of bytes of disk space to use for the content cache. Set to Deprecated: macOS 27+ |
DataPath | string | The path to the directory used to store cached content. Changing this setting manually doesn’t automatically move cached content from the old location to the new one. To move content automatically, use the Sharing preference’s Content Caching pane. The value must be (or end with) The system creates a directory and its intermediates for the given data path if it doesn’t already exist. The directory is owned by Deprecated: macOS 27+ |
DenyTetheredCaching | boolean | If Deprecated: macOS 27+ |
DisplayAlerts | boolean | If Available: macOS 10.15+ Deprecated: macOS 27+ |
KeepAwake | boolean | If Available: macOS 10.15+ Deprecated: macOS 27+ |
ListenRanges | [ContentCachingService.Ranges] | An array of dictionaries that describe a range of client IP addresses to serve. Deprecated: macOS 27+ |
ListenRangesOnly | boolean | If Deprecated: macOS 27+ |
ListenWithPeersAndParents | boolean | If Deprecated: macOS 27+ |
LocalSubnetsOnly | boolean | If Deprecated: macOS 27+ |
LogClientIdentity | boolean | If Deprecated: macOS 27+ |
Parents | [string] | An array of the local IP addresses of other content caches that this cache should download from or upload to, instead of downloading from or uploading to Apple directly. The system ignores invalid addresses and addresses of computers that aren’t content caches. The system skips Parent caches that become unavailable. If all parent content caches become unavailable, the content cache downloads from or uploads to Apple directly, until a parent content cache becomes available again. Deprecated: macOS 27+ |
ParentSelectionPolicy | string | The policy to implement when choosing among more than one configured parent content cache. With every policy, the system skips parent caches that are temporarily unavailable. Allowed values:
Deprecated: macOS 27+ |
PeerFilterRanges | [ContentCachingService.Ranges] | An array of dictionaries describing a range of peer IP addresses that the content cache uses to filter its list of peers to query for content. The content cache only queries peers in Deprecated: macOS 27+ |
PeerListenRanges | [ContentCachingService.Ranges] | An array of dictionaries describing a range of peer IP addresses the content cache responds to. When Deprecated: macOS 27+ |
PeerLocalSubnetsOnly | boolean | If Deprecated: macOS 27+ |
Port | integer | The TCP port number on which the content cache accepts requests for uploads or downloads. Set to Deprecated: macOS 27+ |
PublicRanges | [ContentCachingService.Ranges] | An array of dictionaries describing a range of public IP addresses that the cloud servers should use for matching clients to content caches. Deprecated: macOS 27+ |
Discussion
Specify com.apple.AssetCache.managed as the payload type.
Profile availability
Device channel | macOS |
User channel | N/A |
Allow manual install | macOS |
Requires supervision | N/A |
Requires user-approved MDM | N/A |
Allowed in user enrollment | N/A |
Allow multiple payloads | N/A |
Profile example
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AllowPersonalCaching</key>
<false/>
<key>AllowSharedCaching</key>
<true/>
<key>AutoActivation</key>
<true/>
<key>CacheLimit</key>
<integer>180000000000</integer>
<key>DenyTetheredCaching</key>
<false/>
<key>ListenRangesOnly</key>
<false/>
<key>LocalSubnetsOnly</key>
<true/>
<key>LogClientIdentity</key>
<false/>
<key>ParentSelectionPolicy</key>
<string>round-robin</string>
<key>PeerLocalSubnetsOnly</key>
<true/>
<key>Port</key>
<integer>0</integer>
<key>PayloadIdentifier</key>
<string>com.example.mycontentcachingpayload</string>
<key>PayloadType</key>
<string>com.apple.AssetCache.managed</string>
<key>PayloadUUID</key>
<string>c7d8c850-e4ef-0135-0bd6-0c4de9ce4c04</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</array>
<key>PayloadDisplayName</key>
<string>Content Caching</string>
<key>PayloadIdentifier</key>
<string>com.example.myprofile</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>a430c370-b5d5-4e5b-b46b-137931e8b230</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>