forked from couchbaselabs/TouchDB-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed parameter type in call to purgeRevisions: and added a call to c…
…lear the document cache after purging
- Loading branch information
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8f3bc41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clearing the document cache would be bad, as it would affect other TDDocuments and lead to multiple TDDocument instances for the same document ID. Instead we need to just remove this document ID from the cache.
8f3bc41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I will add a new method to TDDatabase which removes a specific document from the cache, update purgeDocument, and resubmit the pull request.