-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require cache.reset({ discardWatches: true }) to clear cache.watches.
As reported in issue #8851, PR #8826 was a breaking change for code expecting cache.watches to be restarted after cache.reset() is called. This commit establishes a small but extensible Cache.ResetOptions API for the cache.reset method, which allows the handling of watches to be configured via options.discardWatches, which defaults to false, thus restoring the behavior of cache.reset() from before #8826. If you need the behavior introduced by #8826, you can now opt (back) into that behavior by calling cache.reset({ discardWatches: true }).
- Loading branch information
Showing
4 changed files
with
29 additions
and
10 deletions.
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
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
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
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