mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Add DB number to redis cache settings, and set the default to 1
This commit is contained in:
parent
503a332f9b
commit
8f9eacee64
8 changed files with 23 additions and 6 deletions
|
|
@ -12,11 +12,17 @@ jQuery(function($){
|
|||
if (!$("#object_cache_port").val()) {
|
||||
$("#object_cache_port").val($(this).val().match(/memcache/) ? '11211' : '6379');
|
||||
}
|
||||
if ($(this).val().match(/memcache/) && $("#object_cache_port").val() == '6379') {
|
||||
$("#object_cache_port").val('11211');
|
||||
if ($(this).val().match(/memcache/)) {
|
||||
if ($("#object_cache_port").val() == '6379') {
|
||||
$("#object_cache_port").val('11211');
|
||||
}
|
||||
$("#object_cache_dbnum").parents("label").hide();
|
||||
}
|
||||
if ($(this).val().match(/redis/) && $("#object_cache_port").val() == '11211') {
|
||||
$("#object_cache_port").val('6379');
|
||||
if ($(this).val().match(/redis/)) {
|
||||
if ($("#object_cache_port").val() == '11211') {
|
||||
$("#object_cache_port").val('6379');
|
||||
}
|
||||
$("#object_cache_dbnum").parents("label").show();
|
||||
}
|
||||
} else {
|
||||
$("#object_cache_additional_config").hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue