Commit a461f578 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Enable HTTP cache by default

parent d2311c23
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -545,6 +545,7 @@ static char *feh_magick_load_image(char *filename)

#ifdef HAVE_LIBCURL

// TODO use cache for dcraw and magick conversion results as well
gib_hash* http_cache = NULL;

#if LIBCURL_VERSION_NUM >= 0x072000 /* 07.32.0 */
+4 −2
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ void init_parse_options(int argc, char **argv)
#ifdef HAVE_INOTIFY
	opt.auto_reload = 1;
#endif				/* HAVE_INOTIFY */
	opt.use_http_cache = 1;

	feh_getopt_theme(argc, argv);

@@ -431,7 +432,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
		{"auto-reload"   , 0, 0, 248},
#endif
		{"class"         , 1, 0, 249},
		{"use-http-cache", 0, 0, 250},
		{"no-conversion-cache", 0, 0, 250},
		{0, 0, 0, 0}
	};
	int optch = 0, cmdx = 0;
@@ -524,6 +525,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
			break;
		case 'R':
			opt.reload = atof(optarg);
			opt.use_http_cache = 0;
#ifdef HAVE_INOTIFY
			opt.auto_reload = 0;
#endif
@@ -829,7 +831,7 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun)
			opt.x11_class = estrdup(optarg);
			break;
		case 250:
			opt.use_http_cache = 1;
			opt.use_http_cache = 0;
			break;
		default:
			break;