Squid: added check if ram cache is greater than harddisk cache

This commit is contained in:
Alexander Marx
2013-01-10 16:39:58 +01:00
committed by Michael Tremer
parent f0ccae1819
commit d5a7ff9500
3 changed files with 7 additions and 0 deletions

View File

@@ -348,6 +348,11 @@ if (($proxysettings{'ACTION'} eq $Lang::tr{'save'}) || ($proxysettings{'ACTION'}
$errormessage = $Lang::tr{'invalid input'};
goto ERROR;
}
if($proxysettings{'CACHE_MEM'} > $proxysettings{'CACHE_SIZE'}){
$errormessage = $Lang::tr{'advproxy errmsg cache'}." ".$proxysettings{'CACHE_MEM'}." > ".$proxysettings{'CACHE_SIZE'};
goto ERROR;
}
if (!(&General::validport($proxysettings{'PROXY_PORT'})))
{
$errormessage = $Lang::tr{'advproxy errmsg invalid proxy port'};

View File

@@ -212,6 +212,7 @@
'advproxy errmsg auth children' => 'Ungültige Anzahl Authentifizierungsprozesse',
'advproxy errmsg auth ipcache may not be null' => 'Authentifizierungscache TTL darf nicht 0 sein wenn IP-Adressbeschränkungen verwendet werden',
'advproxy errmsg auth ipcache ttl' => 'Ungültiger Wert für Benutzer/IP-Cache TTL',
'advproxy errmsg cache' => 'Der RAM-Cache-Größe ist größer als die Festplatten-Cache-Größe:',
'advproxy errmsg change fail' => 'Passwort konnte nicht geändert werden',
'advproxy errmsg change success' => 'Passwort für Webzugriff erfolgreich geändert',
'advproxy errmsg hdd cache size' => 'Ungültiger Wert für die Größe des Festplatten-Cachespeichers (min. 10 MB erforderlich)',

View File

@@ -212,6 +212,7 @@
'advproxy errmsg auth children' => 'Invalid number of authentication processes',
'advproxy errmsg auth ipcache may not be null' => 'Authentication cache TTL may not be 0 when using IP address limits',
'advproxy errmsg auth ipcache ttl' => 'Invalid value for user/IP cache TTL',
'advproxy errmsg cache' => 'The RAM cache size is greater than the harddisk cache size:',
'advproxy errmsg change fail' => 'Password could not be changed',
'advproxy errmsg change success' => 'Password for web access sucessfully changed',
'advproxy errmsg hdd cache size' => 'Invalid value for harddisk cache size (min 10 MB required)',