Instance Method remove All Cached Resource Values()
Removes all cached resource values and temporary resource values from the URL object.
iOS 7.0+ macOS 10.9+ Mac Catalyst 13.0+ Beta tvOS 9.0+ watchOS 2.0+ Declaration func removeAllCachedResourceValues()
This method is applicable only to URLs that represent file system resources.
The caching behavior of the
APIs differ. For
, all cached values (not temporary values) are automatically removed after each pass through the run loop. You only need to call the
method when you want to clear the cache within a single execution of the run loop. The
remove Cached Resource Value(for Key:)
functions, on the other hand, do not automatically clear cached resource values. The client has complete control over the cache lifetimes, and you must use
CFURL or CFURLClear Resource Property Cache For Key(_: _:) to clear cached resource values. CFURLClear Resource Property Cache(_:) See Also Accessing Resource Values
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.
Learn more about using Apple's beta software