<?php Util_Ui::sealing_disabled($module); ?> value="<?php echo esc_attr(implode(',', $config->get_array(array($module, 'memcached.servers')))); ?> " size="80" /> <input id="memcached_test" class="button {nonce: '<?php echo wp_create_nonce('w3tc'); ?> '}" <?php Util_Ui::sealing_disabled($module); ?> type="button" value="<?php esc_attr_e('Test', 'w3-total-cache'); ?> " /> <span id="memcached_test_status" class="w3tc-status w3tc-process"></span> <br /><span class="description"><?php _e('Multiple servers may be used and seperated by a comma; e.g. 192.168.1.100:11211, domain.com:22122', 'w3-total-cache'); ?> </span> </td> </tr> <?php Util_Ui::config_item(array('key' => array($module, 'memcached.persistent'), 'label' => __('Use persistent connection:', 'w3-total-cache'), 'control' => 'checkbox', 'checkbox_label' => Util_ConfigLabel::get('memcached.persistent'), 'description' => 'Using persistent connection doesn\'t reinitialize memcached driver on each request')); Util_Ui::config_item(array('key' => array($module, 'memcached.aws_autodiscovery'), 'label' => __('Node Auto Discovery:', 'w3-total-cache'), 'control' => 'checkbox', 'checkbox_label' => 'Amazon Node Auto Discovery', 'disabled' => Util_Installed::memcached_aws() ? null : true, 'description' => !Util_Installed::memcached_aws() ? __('ElastiCache PHP module not found', 'w3-total-cache') : __('When Amazon ElastiCache used, specify configuration endpoint as Memecached host', 'w3-total-cache'))); Util_Ui::config_item(array('key' => array($module, 'memcached.username'), 'label' => Util_ConfigLabel::get('memcached.username'), 'control' => 'textbox', 'disabled' => Util_Installed::memcache_auth() ? null : true, 'description' => __('Specify memcached username, when SASL authentication used', 'w3-total-cache') . (Util_Installed::memcache_auth() ? '' : __('<br>Available when memcached extension installed, built with SASL, and memcached.use_sasl = 1 option is set in php.ini', 'w3-total-cache')))); Util_Ui::config_item(array('key' => array($module, 'memcached.password'), 'label' => Util_ConfigLabel::get('memcached.password'), 'control' => 'textbox', 'disabled' => Util_Installed::memcache_auth() ? null : true, 'description' => __('Specify memcached password, when SASL authentication used', 'w3-total-cache')));
$this->value_with_disabled($module . '.memcached.username', !Util_Installed::memcached_auth(), ''); ?> /><br /> <span class="description"> <?php _e('Specify memcached username, when SASL authentication used', 'w3-total-cache'); if (!Util_Installed::memcached_auth()) { _e('<br>Available when memcached extension installed, built with SASL, and memcached.use_sasl = 1 option is set in php.ini', 'w3-total-cache'); } ?> </span> </td> </tr> <tr> <th><label for="memcached_password"><?php echo Util_ConfigLabel::get('memcached.password'); ?> </label></th> <td> <input id="memcached_password" name="<?php echo $module; ?> __memcached__password" type="text" <?php Util_Ui::sealing_disabled($module); ?> <?php $this->value_with_disabled($module . '.memcached.password', !Util_Installed::memcached_auth(), ''); ?> /><br /> <span class="description"><?php
<?php Util_Ui::sealing_disabled($module); ?> value="<?php echo esc_attr(implode(',', $config->get_array(array($module, 'redis.servers')))); ?> " size="100" /> <input class="w3tc_common_redis_test button {nonce: '<?php echo wp_create_nonce('w3tc'); ?> '}" <?php Util_Ui::sealing_disabled($module); ?> type="button" value="<?php esc_attr_e('Test', 'w3-total-cache'); ?> " /> <span class="w3tc_common_redis_test_result w3tc-status w3tc-process"></span> <br /><span class="description"><?php _e('Multiple servers may be used and seperated by a comma; e.g. 192.168.1.100:11211, domain.com:22122', 'w3-total-cache'); ?> </span> </td> </tr> <?php Util_Ui::config_item(array('key' => array($module, 'redis.persistent'), 'label' => __('Use persistent connection:', 'w3-total-cache'), 'control' => 'checkbox', 'checkbox_label' => Util_ConfigLabel::get('redis.persistent'), 'description' => 'Using persistent connection doesn\'t reinitialize memcached driver on each request')); Util_Ui::config_item(array('key' => array($module, 'redis.dbid'), 'label' => Util_ConfigLabel::get('redis.dbid'), 'control' => 'textbox', 'description' => __('Database ID to use', 'w3-total-cache'))); Util_Ui::config_item(array('key' => array($module, 'redis.password'), 'label' => Util_ConfigLabel::get('redis.password'), 'control' => 'textbox', 'description' => __('Specify redis password', 'w3-total-cache')));
Util_Ui::sealing_disabled($module); ?> value="<?php echo esc_attr($this->_config->get_integer($module . '.redis.dbid')); ?> " size="8" /> <br /><span class="description"><?php _e('Database ID to use', 'w3-total-cache'); ?> </span> </td> </tr> <tr> <th><label for="redis_password"><?php echo Util_ConfigLabel::get('redis.password'); ?> </label></th> <td> <input id="redis_password" name="<?php echo $module; ?> __redis__password" type="text" <?php Util_Ui::sealing_disabled($module); ?> <?php $this->value_with_disabled($module . '.redis.password', false, ''); ?> /><br /> <span class="description"><?php