Abstract_WC_Order_Data_Store_CPT::prime_needs_processing_transients
Устарела с версии 0.8.0. Больше не поддерживается и может быть удалена. Используйте
s transients.Prime the needs_processing transient cache for a batch of orders.
WC_Order::needs_processing() calls get_transient() per order, which triggers an individual wp_options query each time. By priming the object cache for all transient option names in a single query, we eliminate the N+1.
Метод класса: Abstract_WC_Order_Data_Store_CPT{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->prime_needs_processing_transients( $order_ids, $query_vars );
- $order_ids(массив) (обязательный)
- Order IDs to prime cache for.
- $query_vars(массив) (обязательный)
- Query vars for the query.
Список изменений
| С версии 10.7.0 | Введена. |
| Устарела с 10.8.0 | \WC_Order::needs_processing method no longer uses transients. |
Код Abstract_WC_Order_Data_Store_CPT::prime_needs_processing_transients() Abstract WC Order Data Store CPT::prime needs processing transients WC 11.2.2
protected function prime_needs_processing_transients( $order_ids, $query_vars ) {
}