mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 23:32:54 +09:00
Fix #1602 support username/password for Redis cache
This commit is contained in:
parent
80b235001e
commit
2f0b6433bc
6 changed files with 22 additions and 3 deletions
|
|
@ -155,6 +155,10 @@
|
|||
<div id="object_cache_additional_config" class="x_inline" style="display:none;margin-left:16px">
|
||||
<label for="object_cache_host" class="x_inline">{$lang->cache_host}: <input type="text" name="object_cache_host" id="object_cache_host" value="{$object_cache_host}" /></label>
|
||||
<label for="object_cache_port" class="x_inline">{$lang->cache_port}: <input type="number" name="object_cache_port" id="object_cache_port" size="5" style="min-width:70px" value="{$object_cache_port}" /></label>
|
||||
</div>
|
||||
<div id="object_cache_redis_config" style="display:none">
|
||||
<label for="object_cache_user" class="x_inline">{$lang->cache_user}: <input type="text" name="object_cache_user" id="object_cache_user" value="{$object_cache_user}" /></label>
|
||||
<label for="object_cache_pass" class="x_inline">{$lang->cache_pass}: <input type="password" name="object_cache_pass" id="object_cache_pass" value="{$object_cache_pass}" /></label>
|
||||
<label for="object_cache_dbnum" class="x_inline">{$lang->cache_dbnum}: <input type="number" name="object_cache_dbnum" id="object_cache_dbnum" size="3" style="min-width:70px" value="{$object_cache_dbnum}" /></label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -16,16 +16,17 @@ jQuery(function($){
|
|||
if ($("#object_cache_port").val() == '6379') {
|
||||
$("#object_cache_port").val('11211');
|
||||
}
|
||||
$("#object_cache_dbnum").parents("label").hide();
|
||||
$("#object_cache_redis_config").hide();
|
||||
}
|
||||
if ($(this).val().match(/redis/)) {
|
||||
if ($("#object_cache_port").val() == '11211') {
|
||||
$("#object_cache_port").val('6379');
|
||||
}
|
||||
$("#object_cache_dbnum").parents("label").show();
|
||||
$("#object_cache_redis_config").show();
|
||||
}
|
||||
} else {
|
||||
$("#object_cache_additional_config").hide();
|
||||
$("#object_cache_redis_config").hide();
|
||||
}
|
||||
}).triggerHandler("change");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue