' . 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' => esc_html__( 'Enable for WP-CLI', 'w3-total-cache' ), 'checkbox_label' => esc_html__( 'Enable', 'w3-total-cache' ), 'control' => 'checkbox', 'disabled' => ! $objectcache_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(), ), ) ); ?>

', '', '', '

' ), 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' => ! $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' => 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' => ! $objectcache_enabled || $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' => ! $objectcache_enabled || $wp_disabled, ) ); ?>