Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #596 from adobe/saurabh95/LimitPreviewCacheSize
Browse files Browse the repository at this point in the history
Fixed #13040 - Limited the size of cache to 250 MB in order to bloating of live-dev-profile folder in APPDATA
  • Loading branch information
zaggino committed Feb 15, 2017
2 parents 3f77cd7 + f3e836e commit ed6eff0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appshell/appshell_extensions_gtk.cpp
Expand Up @@ -64,7 +64,7 @@ int GErrorToErrorCode(GError *gerror) {

int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
{
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";
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";
gchar *remoteDebugging;
gchar *cmdline;
int error = ERR_BROWSER_NOT_INSTALLED;
Expand Down
1 change: 1 addition & 0 deletions appshell/appshell_extensions_mac.mm
Expand Up @@ -263,6 +263,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
@"--disable-default-apps",
debugPortCommandlineArguments,
debugProfilePath,
@"--disk-cache-size=250000000",
urlString,
nil];

Expand Down
2 changes: 1 addition & 1 deletion appshell/appshell_extensions_win.cpp
Expand Up @@ -342,7 +342,7 @@ int32 OpenLiveBrowser(ExtensionString argURL, bool enableRemoteDebugging)
profilePath += L"\\live-dev-profile";
args += L" --user-data-dir=\"";
args += profilePath;
args += L"\" --no-first-run --no-default-browser-check --disable-default-apps --allow-file-access-from-files --remote-debugging-port=9222 ";
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 ";
} else {
args += L" ";
}
Expand Down

0 comments on commit ed6eff0

Please sign in to comment.