Multi cache support

This commit is contained in:
bergware
2020-03-21 20:36:13 +01:00
parent 49196b5ecf
commit bf5a48ea8f

View File

@@ -28,6 +28,7 @@ if ($name == "") {
"include" => "",
"exclude" => "",
"useCache" => "no",
"cachePool" => "cache",
"cow" => "auto"];
} elseif (array_key_exists($name, $shares)) {
/* edit existing share */
@@ -148,9 +149,9 @@ _(Use cache pool (for new files/directories))_:
:end
_(Select cache pool)_:
: <select name="poolName">
: <select name="shareCachePool">
<?foreach ($pools as $pool):?>
<?if ($cache[$pool]['devices']) echo mk_option($poolName,$pool,ucfirst($pool))?>
<?if ($cache[$pool]['devices']) echo mk_option(1,$pool,ucfirst($pool))?>
<?endforeach;?>
</select>