Skip to content

Commit ed6eff0

Browse files
authored
Merge pull request adobe#596 from adobe/saurabh95/LimitPreviewCacheSize
Fixed #13040 - Limited the size of cache to 250 MB in order to bloating of live-dev-profile folder in APPDATA
2 parents 3f77cd7 + f3e836e commit ed6eff0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

appshell/appshell_extensions_gtk.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ int GErrorToErrorCode(GError *gerror) {
6464

6565
int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
6666
{
67-
const char *remoteDebuggingFormat = "--no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --temp-profile --user-data-dir=%s --remote-debugging-port=9222";
67+
const char *remoteDebuggingFormat = "--no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --temp-profile --user-data-dir=%s --disk-cache-size=250000000 --remote-debugging-port=9222";
6868
gchar *remoteDebugging;
6969
gchar *cmdline;
7070
int error = ERR_BROWSER_NOT_INSTALLED;

appshell/appshell_extensions_mac.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
263263
@"--disable-default-apps",
264264
debugPortCommandlineArguments,
265265
debugProfilePath,
266+
@"--disk-cache-size=250000000",
266267
urlString,
267268
nil];
268269

appshell/appshell_extensions_win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
342342
profilePath += L"\\live-dev-profile";
343343
args += L" --user-data-dir=\"";
344344
args += profilePath;
345-
args += L"\" --no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --remote-debugging-port=9222 ";
345+
args += L"\" --disk-cache-size=250000000 --no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --remote-debugging-port=9222 ";
346346
} else {
347347
args += L" ";
348348
}

0 commit comments

Comments
 (0)