ќOoU А— oU@€JЃЛаŠш Л`?ЛКЃЛX=_ЉЛX@ЉЛџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџр• oUџџџџ‡Lч€HVЉЛр• oU+’q‚}ыЌ`пVЉЛn WPML\FP\pipe; use function WPML\FP\spreadArgs;–эŸЛ  ќOoU А— oU@@эŸЛPDщŸЛ`yшŸЛџџџџ˜]щŸЛ Ži oUўPM? ”l oUрNq`{m oUPPNuрЊi oUџџџџџџџџpN<m oU`pџџџџNРm oU`џџџџњP{№эj oUџџџџџџџџP>@pi oU@џџџџџџџџџџџџQ>ШVЉЛШVЉЛ@ Ži oUўPи?р_m oUPр`йsp_j oU`џџџџpйАdj oUp`pй.0m oUP€йQ`ij oU€џџџџpй4№эj oUpџџџџџџџџй>@pi oU@џџџџџџџџџџџџк>0*BxlBвы;я#єmР0‡VЉЛџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџ8Ч[ЉЛџџџџK8$д ч€Р2ЪAџџџџj^RьЩ“x/ѕA`?ЛКЃЛX=_ЉЛX@ЉЛ@ТEЉЛ ЈЃЛ‰ž!рСЃЛщ/** * class names or instances that should be shared. * Shared means that only one instance is ever created when calling the make function. * * @param array $names_or_instances * * @throws \WPML\Auryn\ConfigException */ЁЛ@ЖьŸЛWsIКюŸЛр‰сŸЛ Ži oUўP8?РРi oUР`8@ ”l oUА9q`{m oUPP9u`{m oU``9u Їi oUџџџџџџџџџџџџ9<@pi oUPџџџџџџџџџџџџ:>PЪAЂ[ЉЛЂ[ЉЛ@}ЃЛh@ЉЛ Ži oUўPм?р_m oUPр`нsp_j oU`џџџџpнАdj oUp`pн.0m oUP€нQ`ij oU€џџџџpн4№эj oUpџџџџџџџџн>@pi oU@џџџџџџџџџџџџо>P№AоюAаŠш Лџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџр• oUџџџџ‡Lч€h[њŸЛр• oU+’q‚}ыЌщVЉЛ \WPML_TM_Post_Job_Entity && $job->get_type() ==ŸэŸЛ ќOoU А— oU@џџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџџр• oUџџџџ‡Lч€P ќŸЛр• oU+’q‚}ыЌ шVЉЛ@ЖьŸЛ{Ѓ,@ЁыŸЛ ЊЁЛPDщŸЛTranslations( $stringId ) ), ]; }; Ži oUўPM? ”l oUрNq`{m oUPPNuрЊi oUџџџџџџџџpN<m oU`pџџџџNРm oU`џџџџњP{№эj oUџџџџџџџџP>@pi oU@џџџџџџџџџџџџQ>@;YЉЛ@;YЉЛ Ži oUўPи?р_m oUPр`йsp_j oU`џџџџpйАdj oUp`pй.0m oUP€йQ`ij oU€џџџџpй4№эj oUpџџџџџџџџй>@pi oU@џџџџџџџџџџџџк>0*BxlBвы;я#єmР€RњŸЛ€ъJглњёicl_translations wpml_translations ON wpml_translations.element_id = tt.term_taxonomy_id AND wpml_translations.element_type = CONCAT('tax_', tt.taxonomy) WHERE tt.taxonomy IN (<шŸЛ‹юŸЛŠсŸЛђ/** * @param string $message * @paasync_request() { // Only start an async queue at most once every 60 seconds. if ( is_admin() && ! ActionScheduler::lock()->is_locked( 'async-request-runner' ) && ActionScheduler::lock()->set( 'async-request-runner' ) ) { $this->async_request->maybe_dispatch(); } } /** * Process actions in the queue. Attached to self::WP_CRON_HOOK i.e. 'action_scheduler_run_queue' * * The $context param of this method defaults to 'WP Cron', because prior to Action Scheduler 3.0.0 * that was the only context in which this method was run, and the self::WP_CRON_HOOK hook had no context * passed along with it. New code calling this method directly, or by triggering the self::WP_CRON_HOOK, * should set a context as the first parameter. For an example of this, refer to the code seen in * * @see ActionScheduler_AsyncRequest_QueueRunner::handle() * * @param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron' * Generally, this should be capitalised and not localised as it's a proper noun. * @return int The number of actions processed. */ public function run( $context = 'WP Cron' ) { ActionScheduler_Compatibility::raise_memory_limit(); ActionScheduler_Compatibility::raise_time_limit( $this->get_time_limit() ); do_action( 'action_scheduler_before_process_queue' ); $this->run_cleanup(); $this->processed_actions_count = 0; if ( false === $this->has_maximum_concurrent_batches() ) { do { $batch_size = apply_filters( 'action_scheduler_queue_runner_batch_size', 25 ); $processed_actions_in_batch = $this->do_batch( $batch_size, $context ); $this->processed_actions_count += $processed_actions_in_batch; } while ( $processed_actions_in_batch > 0 && ! $this->batch_limits_exceeded( $this->processed_actions_count ) ); // keep going until we run out of actions, time, or memory. } do_action( 'action_scheduler_after_process_queue' ); return $this->processed_actions_count; } /** * Process a batch of actions pending in the queue. * * Actions are processed by claiming a set of pending actions then processing each one until either the batch * size is completed, or memory or time limits are reached, defined by @see $this->batch_limits_exceeded(). * * @param int $size The maximum number of actions to process in the batch. * @param string $context Optional identifier for the context in which this action is being processed, e.g. 'WP CLI' or 'WP Cron' * Generally, this should be capitalised and not localised as it's a proper noun. * @return int The number of actions processed. */ protected function do_batch( $size = 100, $context = '' ) { $claim = $this->store->stake_claim( $size ); $this->monitor->attach( $claim ); $processed_actions = 0; foreach ( $claim->get_actions() as $action_id ) { // bail if we lost the claim. if ( ! in_array( $action_id, $this->store->find_actions_by_claim_id( $claim->get_id() ), true ) ) { break; } $this->process_action( $action_id, $context ); $processed_actions++; if ( $this->batch_limits_exceeded( $processed_actions + $this->processed_actions_count ) ) { break; } } $this->store->release_claim( $claim ); $this->monitor->detach(); $this->clear_caches(); return $processed_actions; } /** * Flush the cache if possible (intended for use after a batch of actions has been processed). * * This is useful because running large batches can eat up memory and because invalid data can accrue in the * runtime cache, which may lead to unexpected results. */ protected function clear_caches() { /* * Calling wp_cache_flush_runtime() lets us clear the runtime cache without invalidating the external object * cache, so we will always prefer this method (as compared to calling wp_cache_flush()) when it is available. * * However, this function was only introduced in WordPress 6.0. Additionally, the preferred way of detecting if * it is supported changed in WordPress 6.1 so we use two different methods to decide if we should utilize it. */ $flushing_runtime_cache_explicitly_supported = function_exists( 'wp_cache_supports' ) && wp_cache_supports( 'flush_runtime' ); $flushing_runtime_cache_implicitly_supported = ! function_exists( 'wp_cache_supports' ) && function_exists( 'wp_cache_flush_runtime' ); if ( $flushing_runtime_cache_explicitly_supported || $flushing_runtime_cache_implicitly_supported ) { wp_cache_flush_runtime(); } elseif ( ! wp_using_ext_object_cache() /** * When an external object cache is in use, and when wp_cache_flush_runtime() is not available, then * normally the cache will not be flushed after processing a batch of actions (to avoid a performance * penalty for other processes). * * This filter makes it possible to override this behavior and always flush the cache, even if an external * object cache is in use. * * @since 1.0 * * @param bool $flush_cache If the cache should be flushed. */ || apply_filters( 'action_scheduler_queue_runner_flush_cache', false ) ) { wp_cache_flush(); } } /** * Add schedule to WP cron. * * @param array> $schedules Schedules. * @return array> */ public function add_wp_cron_schedule( $schedules ) { $schedules['every_minute'] = array( 'interval' => 60, // in seconds. 'display' => __( 'Every minute', 'action-scheduler' ), ); return $schedules; } }