Fix #1602 support username/password for Redis cache

This commit is contained in:
Kijin Sung 2021-02-05 21:01:04 +09:00
parent 80b235001e
commit 2f0b6433bc
6 changed files with 22 additions and 3 deletions

View file

@ -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");
}