aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--embed/ephy-embed-single.c1
-rw-r--r--src/ephy-main.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c
index 289fa162a..861b4effe 100644
--- a/embed/ephy-embed-single.c
+++ b/embed/ephy-embed-single.c
@@ -186,7 +186,6 @@ ephy_embed_single_initialize (EphyEmbedSingle *single)
char *filename;
char *cookie_policy;
- /* TODO: SoupCache, SSL */
web_context = webkit_web_context_get_default ();
/* Store cookies in moz-compatible SQLite format */
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 6aa3b8c23..83cace3de 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -231,6 +231,7 @@ main (int argc,
EphyFileHelpersFlags flags;
#ifdef HAVE_WEBKIT2
char *pid_str;
+ char *disk_cache_dir;
#endif
#ifdef ENABLE_NLS
@@ -470,6 +471,14 @@ main (int argc,
/* Set the web extensions dir ASAP before the process is launched */
webkit_web_context_set_web_extensions_directory (webkit_web_context_get_default (),
EPHY_WEB_EXTENSIONS_DIR);
+
+ /* Disk Cache */
+ disk_cache_dir = g_build_filename (EPHY_EMBED_SHELL_MODE_HAS_PRIVATE_PROFILE (mode) ?
+ ephy_dot_dir () : g_get_user_cache_dir (),
+ g_get_prgname (), NULL);
+ webkit_web_context_set_disk_cache_directory (webkit_web_context_get_default (),
+ disk_cache_dir);
+ g_free (disk_cache_dir);
#endif
ephy_embed_prefs_init ();