diff --git a/deluge/ui/gtkui/glade/preferences_dialog.glade b/deluge/ui/gtkui/glade/preferences_dialog.glade
index 16bab196a..5c53ad4be 100644
--- a/deluge/ui/gtkui/glade/preferences_dialog.glade
+++ b/deluge/ui/gtkui/glade/preferences_dialog.glade
@@ -4135,7 +4135,7 @@ HTTP W/ Auth
True
●
1
- 512 0 99999 1 10 0
+ 512 0 999999 1 10 0
True
if-valid
diff --git a/deluge/ui/web/js/deluge-all/preferences/CachePage.js b/deluge/ui/web/js/deluge-all/preferences/CachePage.js
index c673ed7ff..bcb1bd430 100644
--- a/deluge/ui/web/js/deluge-all/preferences/CachePage.js
+++ b/deluge/ui/web/js/deluge-all/preferences/CachePage.js
@@ -56,7 +56,7 @@ Deluge.preferences.Cache = Ext.extend(Ext.form.FormPanel, {
defaults: {
decimalPrecision: 0,
minValue: -1,
- maxValue: 99999
+ maxValue: 999999
}
});
om.bind('cache_size', fieldset.add({