From 18717ee62d4f54a880e00ccd80f2a33423bb74eb Mon Sep 17 00:00:00 2001 From: spencer17x <1253478653@qq.com> Date: Tue, 19 Sep 2023 04:51:46 +0800 Subject: [PATCH] docs: add a more detailed explanation to cookies.flushStore() (#37572) * docs: cookies.flushStore() * docs: modify cookies.flushStore() * Update docs/api/cookies.md Co-authored-by: Shelley Vohr --------- Co-authored-by: Shelley Vohr --- docs/api/cookies.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/api/cookies.md b/docs/api/cookies.md index 41e448b713b8..5665c8587c36 100644 --- a/docs/api/cookies.md +++ b/docs/api/cookies.md @@ -119,4 +119,8 @@ Removes the cookies matching `url` and `name` Returns `Promise` - A promise which resolves when the cookie store has been flushed -Writes any unwritten cookies data to disk. +Writes any unwritten cookies data to disk + +Cookies written by any method will not be written to disk immediately, but will be written every 30 seconds or 512 operations + +Calling this method can cause the cookie to be written to disk immediately.