<!--
{
  "availability" : [
    "iOS: 26.0.0 - 27.3.0",
    "iPadOS: 26.0.0 - 27.3.0",
    "macCatalyst: 26.0.0 - 27.0.0",
    "macOS: 26.0.0 - 27.3.0",
    "visionOS: 26.0.0 - 27.3.0"
  ],
  "documentType" : "symbol",
  "framework" : "MetricKit",
  "identifier" : "/documentation/MetricKit/MXDiskSpaceUsageMetric/totalCacheFolderSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetricKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MXDiskSpaceUsageMetric(py)totalCacheFolderSize"
  },
  "title" : "totalCacheFolderSize"
}
-->

# totalCacheFolderSize

The total size of your application’s cache folder.

```
var totalCacheFolderSize: Measurement<UnitInformationStorage> { get }
```

## Discussion

The value of this metric represents total size of <doc://com.apple.documentation/documentation/Foundation/URL/cachesDirectory>.

Placing files in the appropriate directories, such as the <doc://com.apple.documentation/documentation/Foundation/URL/cachesDirectory> and <doc://com.apple.documentation/documentation/Foundation/URL/temporaryDirectory>, allows the system to manage and purge content when necessary, ensuring optimal disk space utilization and a better experience (see [File System Basics](https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)