mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Initialize the avoidsNetworkAccess optimization based on the cachePolicy of the request. closes #928
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user