From 004c9427ebc238b4a2931c51857b939fd6f13b3a Mon Sep 17 00:00:00 2001 From: OJ Kwon Date: Thu, 25 Jan 2018 16:02:33 -0800 Subject: [PATCH] docs(webframe): add interface instruction --- docs/api/web-frame.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/api/web-frame.md b/docs/api/web-frame.md index 577b45f35a60..39d7f22fb065 100644 --- a/docs/api/web-frame.md +++ b/docs/api/web-frame.md @@ -221,4 +221,13 @@ in your app has occurred that makes you think your page is actually using less memory (i.e. you have navigated from a super heavy page to a mostly empty one, and intend to stay there). +### `webFrame.setCacheCapacity(capacity)` + +* `capacity` Integer + +Set the capacity of resource cache for the renderer process in bytes + +Note if current cached resource size is larger than newly specified capacity, Electron +will schedule to prune cached resources until it reaches below new capacity. + [spellchecker]: https://github.com/atom/node-spellchecker