Initialize the avoidsNetworkAccess optimization based on the cachePolicy of the request. closes #928

This commit is contained in:
Blake Watters
2012-09-12 18:14:46 -04:00
parent 53e3b9bd47
commit e84b7e06f1
2 changed files with 13 additions and 2 deletions

View File

@@ -29,7 +29,7 @@
This optimization has even greater impact when the object request operation is an instance of `RKManagedObjectRequestOperation` as object mapping can skipped entirely and the objects loaded directly from Core Data.
**Default**: `YES`
**Default**: Dependent on the `cachePolicy` of the `NSURLRequest` used to initialize the operation. `YES` unless the request has a `cachePolicy` value equal to `NSURLRequestReloadIgnoringLocalCacheData` or `NSURLRequestReloadIgnoringLocalAndRemoteCacheData`.
*/
@property (nonatomic, assign) BOOL avoidsNetworkAccess;