' . esc_html__( 'Learn more', 'w3-total-cache' ) . ''; }; $dbcache_anchor_allowed_tags = array( 'a' => array( 'class' => array(), 'href' => array(), 'title' => array(), 'target' => array(), ), 'span' => array( 'class' => array(), ), ); $dbcache_learn_more_output = static function ( $anchor, $config_key = '' ) use ( $dbcache_learn_more_link ) { if ( empty( $anchor ) ) { return ''; } $label = $config_key ? Util_Ui::config_label( $config_key ) : ''; if ( empty( $label ) ) { $label = $anchor; } return $dbcache_learn_more_link( $anchor, wp_strip_all_tags( $label ) ); }; ?>

_config->get_string( 'dbcache.engine' ) ) ), '' . esc_html__( 'enabled', 'w3-total-cache' ) : 'disabled">' . esc_html__( 'disabled', 'w3-total-cache' ) ) . '' ), array( 'span' => array( 'class' => array(), ), ) ); ?>

checkbox( 'dbcache.reject.logged' ); ?>

_config->get_string( 'dbcache.engine' ) ) { $module = 'dbcache'; include W3TC_INC_DIR . '/options/parts/memcached.php'; } elseif ( 'redis' === $this->_config->get_string( 'dbcache.engine' ) ) { $module = 'dbcache'; include W3TC_INC_DIR . '/options/parts/redis.php'; } ?> 'dbcache.wpcli_disk', 'label' => Util_Ui::config_label( 'dbcache.wpcli_disk' ), 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'control' => 'checkbox', 'disabled' => ! $dbcache_enabled, 'description' => esc_html__( 'WP-CLI already uses Memcached, Redis, and other persistent engines. Enable this only if your database cache engine is Disk and you want WP-CLI to use it.', 'w3-total-cache' ) . wp_kses( $dbcache_learn_more_output( 'allow-wpcli-disk-cache', 'dbcache.wpcli_disk' ), $dbcache_anchor_allowed_tags ), ) ); ?>
value="_config->get_integer( 'dbcache.lifetime' ) ); ?>" size="8" />

value="_config->get_integer( 'dbcache.file.gc' ) ); ?>" size="8" />

', '', '', '' ), array( 'a' => array( 'href' => array(), ), 'acronym' => array( 'title' => array(), ), ) ); ?>

_config->get_boolean( 'dbcache.wp_cron' ); if ( ! $dbcache_enabled ) { echo wp_kses( sprintf( // Translators: 1 opening HTML div tag followed by opening HTML p tag, 2 opening HTML a tag, // Translators: 3 closing HTML a tag, 4 closing HTML p tag followed by closing HTML div tag. __( '%1$sDatabase Cache is disabled! Enable it %2$shere%3$s to enable this feature.%4$s', 'w3-total-cache' ), '

', '', '', '

' ), array( 'div' => array( 'class' => array(), ), 'p' => array(), 'a' => array( 'href' => array(), ), ) ); } Util_Ui::config_item( array( 'key' => 'dbcache.wp_cron', 'label' => Util_Ui::config_label( 'dbcache.wp_cron' ), 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'control' => 'checkbox', 'disabled' => ! $dbcache_enabled, ) ); $time_options = array(); for ( $hour = 0; $hour < 24; $hour++ ) { foreach ( array( '00', '30' ) as $minute ) { $time_value = $hour * 60 + intval( $minute ); $scheduled_time = new \DateTime( "{$hour}:{$minute}", wp_timezone() ); $time_label = $scheduled_time->format( 'g:i a' ); $time_options[ $time_value ] = $time_label; } } Util_Ui::config_item( array( 'key' => 'dbcache.wp_cron_time', 'label' => Util_Ui::config_label( 'dbcache.wp_cron_time' ), 'control' => 'selectbox', 'selectbox_values' => $time_options, 'description' => esc_html__( 'This setting controls the initial start time of the cron job. If the selected time has already passed, it will schedule the job for the following day at the selected time.', 'w3-total-cache' ), 'disabled' => ! $dbcache_enabled || $wp_disabled, ) ); Util_Ui::config_item( array( 'key' => 'dbcache.wp_cron_interval', 'label' => Util_Ui::config_label( 'dbcache.wp_cron_interval' ), 'control' => 'selectbox', 'selectbox_values' => array( 'hourly' => esc_html__( 'Hourly', 'w3-total-cache' ), 'twicedaily' => esc_html__( 'Twice Daily', 'w3-total-cache' ), 'daily' => esc_html__( 'Daily', 'w3-total-cache' ), 'weekly' => esc_html__( 'Weekly', 'w3-total-cache' ), ), 'description' => esc_html__( 'This setting controls the interval that the cron job should occur.', 'w3-total-cache' ), 'disabled' => ! $dbcache_enabled || $wp_disabled, ) ); ?>