' . 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' ) ) : ?>
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( 'a' => array( 'href' => array(), 'target' => array(), ), ) ); ?>

get_boolean( 'objectcache.enabled' ); $wp_disabled = ! $c->get_boolean( 'objectcache.wp_cron' ); if ( $disabled ) { 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$sObject 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' => 'objectcache.wp_cron', 'label' => esc_html__( 'Enable WP-Cron Event', 'w3-total-cache' ), 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'control' => 'checkbox', 'disabled' => $disabled, ) ); $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' => 'objectcache.wp_cron_time', 'label' => esc_html__( 'Start Time', 'w3-total-cache' ), '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' => $disabled || $wp_disabled, ) ); Util_Ui::config_item( array( 'key' => 'objectcache.wp_cron_interval', 'label' => esc_html__( 'Interval', 'w3-total-cache' ), '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' => $disabled || $wp_disabled, ) ); ?>