|
type="button" value="" />
|
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', 'w3-total-cache' ),
)
);
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() ? '' :
__( '
Available when memcached extension installed, built with SASL', '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' ),
)
);
?>