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

' . Cache::engine_name( $this->_config->get_string( 'objectcache.engine' ) ) . '', '' . esc_html__( 'enabled', 'w3-total-cache' ) : 'disabled">' . esc_html__( 'disabled', 'w3-total-cache' ) ) . ( ! $this->_config->getf_boolean( 'objectcache.enabled' ) && has_filter( 'w3tc_config_item_objectcache.enabled' ) ? esc_html__( ' via filter', 'w3-total-cache' ) : '' ) . '' ), array( 'strong' => array(), 'span' => array( 'class' => array(), ), ) ); ?>

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

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

checkbox( 'objectcache.enabled_for_wp_admin' ); ?>

checkbox( 'objectcache.fallback_transients' ); ?>

checkbox( 'objectcache.purge.all' ); ?>

', '' ), array( 'em' => array(), ) ); ?>

', '', '', '

' ), array( 'div' => array( 'class' => array(), ), 'p' => array(), 'a' => array( 'href' => array(), ), ) ); } Util_Ui::config_item( array( 'key' => 'objectcache.wp_cron', 'label' => Util_Ui::config_label( 'objectcache.wp_cron' ), 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'control' => 'checkbox', 'disabled' => ! $objectcache_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; } } $wp_disabled = ! $this->_config->get_boolean( 'objectcache.wp_cron' ); Util_Ui::config_item( array( 'key' => 'objectcache.wp_cron_time', 'label' => Util_Ui::config_label( 'objectcache.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' => ! $objectcache_enabled || $wp_disabled, ) ); Util_Ui::config_item( array( 'key' => 'objectcache.wp_cron_interval', 'label' => Util_Ui::config_label( 'objectcache.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' => ! $objectcache_enabled || $wp_disabled, ) ); ?>